Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GravityForce = 196.2
- wait()
- if script.MultipleBricks.Value == false then
- local bodyForce = Instance.new('BodyForce', script.Parent)
- bodyForce.Name = 'NoGravity'
- bodyForce.force = Vector3.new(0, script.Parent:GetMass() * GravityForce, 0)
- elseif script.MultipleBricks.Value == true then
- local parts = script.Parent:GetChildren()
- for p = 1, #parts do
- if parts[p]:IsA('BasePart') then
- local bodyForce = Instance.new('BodyForce', parts[p])
- bodyForce.Name = 'NoGravity'
- bodyForce.force = Vector3.new(0, parts[p]:GetMass() * GravityForce, 0)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement