Advertisement
BabyGoatz

Untitled

Oct 10th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. plr=game.Players.BabyGoatz
  2. torso=plr.Character.Torso
  3. mt='Neon'
  4. clr='Really black'
  5. sz=1.2
  6.  
  7. local part=Instance.new("Part",torso)
  8. part.Anchored=true
  9. part.BrickColor=BrickColor.new(clr)
  10. part.Material=mt
  11. part.Shape='Ball'
  12. part.Size=Vector3.new(sz,sz,sz)
  13. local angle=0
  14. local speed=0.05
  15. local radius=5
  16. local function rot()
  17. if part then
  18. local x=math.cos(angle)*radius
  19. local y=0
  20. local z=math.sin(angle)*radius
  21. part.CFrame=torso.CFrame*CFrame.new(x,y,z)
  22. angle=angle+speed
  23. end
  24. end
  25. game:service'RunService'.Stepped:connect(function() rot() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement