Advertisement
urabigfatnoob

ayylmao

Aug 25th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function circle()
  2.     local part = workspace.somecircle
  3.     part.BrickColor = BrickColor.Random()
  4.     local diam = 10
  5.     local circ = math.pi*diam
  6.     local n = circ/.5
  7.     local rot = 360/n
  8.     local CFrameval = part.CFrame
  9.     while true do
  10.         for i = 0,n do
  11.             game:GetService('RunService').RenderStepped:wait()
  12.             part.CFrame = CFrameval*CFrame.Angles(0,math.rad(i*rot),0)*CFrame.new(0,0,5)
  13.         end
  14.     end
  15. end
  16. spawn(circle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement