How to code a circling particle,

First of all place a function then place select random player then place select default player then following:

let a variable for angle of circle (x)
Than use += to increase the variable by 5 (or your choise, more the number more the speed)

Then use radian function to get the radian of 'x' , let it be y

Then, use sine function and use value radian or y as the angle and let the variable be 'sine'

Then use cosine function and use radian or y as the angle and let the variable 'cosine'

Now use set location function (use current location) and change x with sind and z with cosine

Play particle at thhat location of ur choice

Then use wait and call the same function again! Now you have a circle revolving around u!

# you can add %player% to the variable to be accessable to all players
 

Aalus

Big Bandar
Joined
May 20, 2023
Messages
489
First of all place a function then place select random player then place select default player then following:

let a variable for angle of circle (x)
Than use += to increase the variable by 5 (or your choise, more the number more the speed)

Then use radian function to get the radian of 'x' , let it be y

Then, use sine function and use value radian or y as the angle and let the variable be 'sine'

Then use cosine function and use radian or y as the angle and let the variable 'cosine'

Now use set location function (use current location) and change x with sind and z with cosine

Play particle at thhat location of ur choice

Then use wait and call the same function again! Now you have a circle revolving around u!

# you can add %player% to the variable to be accessable to all players
Circle in a nutshell frfr
 
Top