Advertisement
SebTDZ

Grav

Jul 18th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. game:FindFirstChildOfClass("Players").Name = "Players"
  2.  
  3. local Point1 = Vector3.new(-2500,-10,-2500)
  4. local Point2 = Vector3.new(2500,2500,2000)
  5. local Region = Region3.new(Point1,Point2)
  6. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  7.     Part:Remove()
  8. end
  9. local Base = Instance.new("Part",script)
  10. Base.Material = "ForceField"
  11. Base.BrickColor = BrickColor.new("Green")
  12. Base.Anchored = true
  13. Base.Position = Vector3.new(0,10,0)
  14. Base.Size = Vector3.new(30,1,30)
  15. Base.Name = "Base"
  16. for i,plr in pairs(game.Players:GetPlayers()) do
  17.     plr:LoadCharacter()
  18. end
  19. function new()
  20.     local NewPart = Instance.new("Part",script)
  21.     NewPart.Material = "ForceField"
  22.     NewPart.Position = Vector3.new(math.random(-128,128), math.random(-128,128), math.random(-128,128))
  23.     NewPart.BrickColor = BrickColor.Random()
  24.     NewPart.Anchored = false
  25.     NewPart.CanCollide = false
  26.     NewPart.Size = Vector3.new(math.random(8,38), math.random(8,38), math.random(8,38))
  27.     NewPart.Name = "We"
  28.    
  29.     local Part = NewPart
  30.     local Body = Instance.new("BodyPosition")
  31.     Body.Parent = Part
  32.     Body.Position = Vector3.new(math.random(-128,128), math.random(-128,128), math.random(-128,128))
  33.     Body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  34.     Body.ReachedTarget:Connect(function()
  35.         NewPart.Anchored = true
  36.         NewPart.CanCollide = true
  37.     end)
  38.  
  39.     game.Debris:AddItem(NewPart,60)
  40. end
  41. while1 = coroutine.create(function()
  42.     while true do
  43.         game.Workspace.Gravity = 25
  44.         game.Lighting:SetMinutesAfterMidnight(0)
  45.         for i,part in pairs(game.Workspace:GetChildren()) do
  46.             if part.ClassName == "Part" then
  47.                 part:Remove()
  48.             end
  49.         end
  50.         wait(0.1)
  51.     end
  52. end)
  53.  
  54. coroutine.resume(while1)
  55. while true do
  56.     new()
  57.     wait(1)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement