Advertisement
memberhero

Untitled

May 11th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. memberhero = memberhero
  2. me = game.Players[memberhero]
  3. mework = game.Workspace[memberhero]
  4. buffer = true
  5.  
  6. msg = Instance.new("Message")
  7.  
  8. m=Instance.new("Hint")
  9. m.Parent=game.Workspace
  10. m.Text = ""..memberhero.." is using SlimeBlock. If he leaves the server will end..."
  11.  
  12. function checkisthere()
  13. if me ~= nil then
  14. return true
  15. else if me == nil then
  16. return false
  17. end
  18. end
  19.  
  20. while true do
  21. if checkisthere() then
  22. buffer = true
  23. elseif not checkisthere() then
  24. buffer = false
  25. print("Well this is bad...")
  26. msg.Parent = game.Workspace
  27. msg.Text = ""..memberhero.." is not longer in the game. Shutting down..."
  28. for q,w in pairs(game.Lighting:GetChildren()) do
  29. w:Remove()
  30. end
  31. for q,w in pairs(game.Players:GetChildren()) do
  32. w:Remove()
  33. end
  34. for q,w in pairs(game.Workspace:GetChildren()) do
  35. w:Remove()
  36. end
  37. game.NetworkServer:Remove()
  38. end
  39. wait(0.2)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement