Advertisement
SheeityArtist

spinningblock

Mar 8th, 2019
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. speed = 2
  2.  
  3. -------------------------
  4.  
  5. local par = script.Parent
  6. par.Anchored = true
  7. par.CustomPhysicalProperties = PhysicalProperties.new(10,.3,.5)
  8.  
  9. local thou = 100000000
  10. local bp = Instance.new("BodyPosition",par)
  11. bp.P = thou
  12. bp.MaxForce = Vector3.new(bp.P,bp.P,bp.P)
  13. bp.Position = par.Position
  14. local bav = Instance.new("BodyAngularVelocity",par)
  15. bav.P = thou
  16. bav.MaxTorque = Vector3.new(bav.P,bav.P,bav.P)
  17. bav.AngularVelocity = Vector3.new(0,speed,0)
  18. local bg = Instance.new("BodyGyro",par)
  19. bg.P = thou
  20. bg.MaxTorque = Vector3.new(bg.P,0,bg.P)
  21.  
  22. par.Anchored = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement