Advertisement
ROBLOXSB

Untitled

Feb 11th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. --[[
  2. SlimeBlock V1.0.
  3.  
  4. This is the first of SlimeBlock. What this does is check for your character.
  5. If you are there nothing happens. If you leave, are banned, etc. the server ends.
  6. This can be used in Insert Wars, SBs, etc.
  7.  
  8. If you have a problem please PM me (my name is fredyredy.)
  9.  
  10. ]]
  11. NAME = TheLegendarySuper --<<< Put name here.
  12. me = game.Players[NAME]
  13. mework = game.Workspace[NAME]
  14. buffer = true
  15.  
  16. msg = Instance.new("Message")
  17.  
  18. m=Instance.new("Hint")
  19. m.Parent=game.Workspace
  20. m.Text = ""..NAME.." is using SlimeBlock. If he leaves the server will end..."
  21.  
  22. function checkisthere()
  23. if me ~= nil then
  24. return true
  25. else if me == nil then
  26. return false
  27. end
  28. end
  29.  
  30. while true do
  31. if checkisthere() then
  32. buffer = true
  33. elseif not checkisthere() then
  34. buffer = false
  35. print("Well this is bad...")
  36. msg.Parent = game.Workspace
  37. msg.Text = ""..NAME.." is not longer in the game. Shutting down..."
  38. for q,w in pairs(game.Lighting:GetChildren()) do
  39. w:Remove()
  40. end
  41. for q,w in pairs(game.Players:GetChildren()) do
  42. w:Remove()
  43. end
  44. for q,w in pairs(game.Workspace:GetChildren()) do
  45. w:Remove()
  46. end
  47. game.NetworkServer:Remove()
  48. end
  49. wait(0.2)
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement