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
 

deefer

Active member
Joined
May 22, 2023
Messages
460
this applies to all axis for those who want to make some sorta spinny circle and this is how to code 2d vector as well. We can also use this to make ellipse shape: acos theta and bsin theta with a, b the length, width of the ellipse shape ya want.
 

deefer

Active member
Joined
May 22, 2023
Messages
460
also, i noticed your guide doesnt have any explanation if we remove the %player% for accessible at the end.
 

Aalus

Big Bandar
Joined
May 20, 2023
Messages
454
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
 

deefer

Active member
Joined
May 22, 2023
Messages
460
Circles stacked from decreasing radii to a certain max then from that max to again decreasing
dunno any eqn about sphere yet ¯\_(ツ)_/¯
thought i already gave u the parametric equation?
 
Top