Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local step = 0.1
- local time = 0
- local angle = 0
- local pi2 = 2*math.pi()
- while true do
- angle = (angle + 0.1) % pi2
- local dx = math.sin(angle) / 2
- local dz = math.cos(angle) / 2
- commands.async.exec("execute Cobra_Tomtrein ~ ~ ~ particle reddust ~"..tostring(dx).." ~2.1 ~"..tostring(dz).." 0.1 0.8 1 1")
- commands.async.exec("execute Cobra_Tomtrein ~ ~ ~ particle reddust ~"..tostring(-dx).." ~2.1 ~"..tostring(-dz).." 0.1 0.8 1 1")
- os.sleep(time)
- end
Advertisement
Add Comment
Please, Sign In to add comment