Advertisement
otorp2

roblox CFrame loop

Jan 14th, 2018
818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local brick = Instance.new("Part",workspace)
  2. brick.CFrame = CFrame.new(Vector3.new(0,5,0,0))
  3.  
  4. while true do
  5. for i = 1,100 do
  6. wait()
  7. brick.CFrame = brick.CFrame + Vector3.new(0,0,1)
  8. --workspace.maBrickmodel:SetPrimaryPartCFrame(CFrame.new(workspace.maBrickmodel.PrimaryPart.Position + Vector3.new(0,0,1)))
  9. print(i)
  10. end
  11.  
  12. wait(.2)
  13.  
  14. for i = 1,100 do
  15. wait()
  16. brick.CFrame = brick.CFrame - Vector3.new(0,0,1)
  17.  
  18. --workspace.maBrickmodel:SetPrimaryPartCFrame(CFrame.new(workspace.maBrickmodel.PrimaryPart.Position - Vector3.new(0,0,1)))
  19. print(i)
  20. end
  21. wait(.2)
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement