Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- memberhero = memberhero
- me = game.Players[memberhero]
- mework = game.Workspace[memberhero]
- buffer = true
- msg = Instance.new("Message")
- m=Instance.new("Hint")
- m.Parent=game.Workspace
- m.Text = ""..memberhero.." is using SlimeBlock. If he leaves the server will end..."
- function checkisthere()
- if me ~= nil then
- return true
- else if me == nil then
- return false
- end
- end
- while true do
- if checkisthere() then
- buffer = true
- elseif not checkisthere() then
- buffer = false
- print("Well this is bad...")
- msg.Parent = game.Workspace
- msg.Text = ""..memberhero.." is not longer in the game. Shutting down..."
- for q,w in pairs(game.Lighting:GetChildren()) do
- w:Remove()
- end
- for q,w in pairs(game.Players:GetChildren()) do
- w:Remove()
- end
- for q,w in pairs(game.Workspace:GetChildren()) do
- w:Remove()
- end
- game.NetworkServer:Remove()
- end
- wait(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement