Cobra_Tomtrein-temp-

Untitled

Sep 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2.  
  3.  
  4. local step = 0.1
  5. local time = 0
  6. local angle = 0
  7.  
  8. local pi2 = 2*math.pi()
  9.  
  10.  
  11. while true do
  12. angle = (angle + 0.1) % pi2
  13. local dx = math.sin(angle) / 2
  14. local dz = math.cos(angle) / 2
  15. commands.async.exec("execute Cobra_Tomtrein ~ ~ ~ particle reddust ~"..tostring(dx).." ~2.1 ~"..tostring(dz).." 0.1 0.8 1 1")
  16. commands.async.exec("execute Cobra_Tomtrein ~ ~ ~ particle reddust ~"..tostring(-dx).." ~2.1 ~"..tostring(-dz).." 0.1 0.8 1 1")
  17. os.sleep(time)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment