Advertisement
Guest User

sh1

a guest
Jan 23rd, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. spawn(function()
  2.     while true do
  3.         game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  4.         game.Players.LocalPlayer.SimulationRadius = math.pow(math.huge,math.huge)*math.huge
  5.         game:GetService("RunService").Stepped:wait()
  6.     end
  7. end)
  8. local function zeroGrav(part)
  9.     if part:FindFirstChild("BodyForce") then return end
  10.     local temp = Instance.new("BodyForce")
  11.     temp.Force = part:GetMass() * Vector3.new(0,workspace.Gravity,0)
  12.     temp.Parent = part
  13. end
  14.  
  15. for i,v in ipairs(workspace:GetDescendants()) do
  16.     if v:IsA("Part") and v.Anchored == false then
  17.         if not (v:IsDescendantOf(game.Players.LocalPlayer.Character)) then
  18.             zeroGrav(v)
  19.         end
  20.     end
  21. end
  22.  
  23. workspace.DescendantAdded:Connect(function(part)
  24.     if part:IsA("Part") and v.Anchored == false then
  25.         if not (part:IsDescendantOf(game.Players.LocalPlayer.Character)) then
  26.             zeroGrav(part)
  27.         end
  28.     end
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement