Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,part in pairs(game.Workspace:GetChildren()) do
- if part.ClassName == "Part" then
- part:Remove()
- end
- end
- function new()
- local NewPart = Instance.new("Part",script)
- NewPart.Material = "ForceField"
- --NewPart.Position = plrH.Position
- NewPart.BrickColor = BrickColor.Random()
- NewPart.Anchored = false
- NewPart.CanCollide = false
- NewPart.Size = Vector3.new(math.random(8,38), math.random(8,38), math.random(8,38))
- NewPart.Name = "We"
- local Part = NewPart
- local Body = Instance.new("BodyPosition")
- Body.Parent = Part
- Body.Position = Vector3.new(math.random(-128,128), math.random(-128,128), math.random(-128,128))
- Body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Body.ReachedTarget:Connect(function()
- NewPart.Anchored = true
- NewPart.CanCollide = true
- end)
- game.Debris:AddItem(NewPart,90)
- end
- function HF(Plr)
- if game.Players:FindFirstChild(Plr.Name).Character then
- if game.Players:FindFirstChild(Plr.Name).Character:FindFirstChild("HumanoidRootPart") then
- Part = game.Players:FindFirstChild(Plr.Name).Character.HumanoidRootPart
- Part.Anchored = false
- ch = {-1,1}
- local Body = Instance.new("BodyPosition",Part)
- Body.Position = game.Players:FindFirstChild(Plr.Name).Character.HumanoidRootPart.Position + Vector3.new(0,10,0)
- Body.MaxForce = Vector3.new(0,math.huge,0)
- if Part.Parent:FindFirstChildOfClass("Humanoid") then
- Part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- local Body2 = Instance.new("BodyAngularVelocity",Part)
- Body2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- Body2.AngularVelocity = Vector3.new(ch[math.random(1,2)], ch[math.random(1,2)], ch[math.random(1,2)])
- end
- end
- end
- while1 = coroutine.create(function()
- while true do
- for i,p in pairs(game.Players:GetPlayers()) do
- HF(p)
- end
- for i,part in pairs(game.Workspace:GetChildren()) do
- if part.ClassName == "Part" then
- part:Remove()
- end
- end
- game.Lighting:SetMinutesAfterMidnight(0)
- wait(0.1)
- end
- end)
- coroutine.resume(while1)
- while true do
- new()
- wait(1)
- end
Add Comment
Please, Sign In to add comment