Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function circle()
- local part = workspace.somecircle
- part.BrickColor = BrickColor.Random()
- local diam = 10
- local circ = math.pi*diam
- local n = circ/.5
- local rot = 360/n
- local CFrameval = part.CFrame
- while true do
- for i = 0,n do
- game:GetService('RunService').RenderStepped:wait()
- part.CFrame = CFrameval*CFrame.Angles(0,math.rad(i*rot),0)*CFrame.new(0,0,5)
- end
- end
- end
- spawn(circle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement