Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local LastPosition = Player.Character.HumanoidRootPart.CFrame
- local CurrentEgg
- task.spawn(function()
- task.wait(0.1)
- while CurrentEgg do
- if not (CurrentEgg == nil) then
- Character.HumanoidRootPart.CFrame = CurrentEgg.RootPart.CFrame - Vector3.new(0,6,0)
- end
- task.wait()
- end
- end)
- for i, Egg in pairs(workspace.Eggs:GetChildren()) do
- --Character.HumanoidRootPart.Anchored = true
- CurrentEgg = Egg
- task.spawn(function()
- while task.wait() do
- local args = {
- [1] = Egg
- }
- game:GetService("ReplicatedStorage"):WaitForChild("events-Eqz"):WaitForChild("10771e1f-fc71-41aa-8c83-945ef7d3400b"):FireServer(unpack(args))
- end
- end)
- task.wait(4)
- end
- CurrentEgg = nil
- Character.HumanoidRootPart.CFrame = LastPosition
- print("Killing players now...")
- while task.wait() do
- for i, TPlayer in pairs(game.Players:GetPlayers()) do
- if TPlayer and not (TPlayer == Player) and not (TPlayer.TeamColor == Player.TeamColor) then
- print("Working")
- if TPlayer.Character and Player.Character then
- print("Working 2")
- if TPlayer.Character:FindFirstChild("HumanoidRootPart") then
- print("Working 3")
- while TPlayer and TPlayer.Character and TPlayer.Character:FindFirstChild("HumanoidRootPart") do
- Player.Character.HumanoidRootPart.CFrame = TPlayer.Character.HumanoidRootPart.CFrame - Vector3.new(0,6,0)
- local args = {
- [1] = game:GetService("Players"):WaitForChild(TPlayer.Name)
- }
- game:GetService("ReplicatedStorage"):WaitForChild("events-Eqz"):WaitForChild("5c73e2ee-c179-4b60-8be7-ef8e4a7eebaa"):FireServer(unpack(args)) -- Kill Event
- task.wait()
- if (Player.Character.HumanoidRootPart.Position.Y > (LastPosition.Position.Y - 100)) then
- break
- end
- end
- Character.HumanoidRootPart.CFrame = LastPosition
- task.wait(0.1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement