particle skript help plz

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Peya

Member
May 19, 2025
1
0
1
I'm Korean, so I’m not good at English and I'm using a translator to write this message. Because of that, the writing might be a bit strange.


I'm working on this with a script, but I have no idea how to do this part. I understand how to create a particle in the direction the player is looking, like in example 1 on the left. But I just can't figure out how to create a particle in front of the player, like in example 2, regardless of the player's pitch.

player = player
yellow circle = particle
red line = player's pitch


제목 없음.png
 
maybe this?
Python:
on move:
    loop all players:
        set {_pitch} to pitch of loop-player
        set {_offsetY} to {_pitch} / -90
        set {_location} to location of loop-player
        add 1 to y-coordinate of {_location}
        add {_offsetY} to y-coordinate of {_location}

        spawn 1 redstone particle at {_location} with offset 0, 0, 0 and speed 0