Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Workspace = game:GetService("Workspace")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Map = Workspace:WaitForChild("Map")
- local Path = Map:WaitForChild("Path")
- local Arrows = Map:WaitForChild("Arrows")
- local Sounds = Map:WaitForChild("Sounds")
- local Configuration = Map:WaitForChild("Configuration")
- script.Parent.Parent.Enabled = false
- Configuration.Health.Changed:Connect(function()
- if Configuration.Health.Value <= 0 then
- script.Parent.Parent.Enabled = true
- if Sounds.Lose.Playing == false then
- Sounds.Lose:Play()
- wait(15)
- game.Players.LocalPlayer:Kick("You Lost, you can rejoin to play again!")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment