Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local increment = .05 -- best to keep it to a 5-base of 1(0)-base increment
- function RunAnimation(p)
- local p = p or script.Parent
- local rightframe = p.CFrame + p.CFrame:vectorToWorldSpace( Vector3.new(1,0,0) * p.Size.X/2 )
- for i = 0, math.pi/2, .05 do
- wait()
- local newframe = rightframe * (CFrame.Angles(0, -i, 0) * CFrame.new(p.Size.X/-2,0,0))
- p.CFrame = newframe
- end
- end
- RunAnimation()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement