Advertisement
Guest User

No Gravity Script (ROBLOX) (SCRIPT BUILDER) *2015*

a guest
Jun 14th, 2015
5,954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. GravityForce = 196.2
  2. wait()
  3. if script.MultipleBricks.Value == false then
  4. local bodyForce = Instance.new('BodyForce', script.Parent)
  5. bodyForce.Name = 'NoGravity'
  6. bodyForce.force = Vector3.new(0, script.Parent:GetMass() * GravityForce, 0)
  7. elseif script.MultipleBricks.Value == true then
  8. local parts = script.Parent:GetChildren()
  9. for p = 1, #parts do
  10. if parts[p]:IsA('BasePart') then
  11. local bodyForce = Instance.new('BodyForce', parts[p])
  12. bodyForce.Name = 'NoGravity'
  13. bodyForce.force = Vector3.new(0, parts[p]:GetMass() * GravityForce, 0)
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement