Advertisement
BabyGoatz

Untitled

Oct 10th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 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. local mesh = Instance.new("SpecialMesh")
  9. mesh.Parent = part
  10. mesh.MeshId = "http://www.roblox.com/asset/?id=1365696"
  11. mesh.TextureId = "http://www.roblox.com/asset/?id=1365693"
  12. part.Anchored=true
  13. part.BrickColor=BrickColor.new(clr)
  14. part.Material=mt
  15. part.Shape='Ball'
  16. part.Size=Vector3.new(sz,sz,sz)
  17. local angle=0
  18. local speed=0.05
  19. local radius=5
  20. local function rot()
  21. if part then
  22. local x=math.cos(angle)*radius
  23. local y=0
  24. local z=math.sin(angle)*radius
  25. part.CFrame=torso.CFrame*CFrame.new(x,y,z)
  26. angle=angle+speed
  27. end
  28. end
  29. game:service'RunService'.Stepped:connect(function() rot() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement