Advertisement
Godofadmin1337

ban

Sep 27th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. Script0.Name = "Ban"
  21. Script0.Parent = mas
  22. table.insert(cors,sandbox(Script0,function()
  23. game.Players.PlayerAdded:connect(function(plr)
  24. if plr.Name == ("Chx_ris") then
  25. plr:Kick("Stop killing everyone!")
  26. end
  27. end)
  28. end))
  29. for i,v in pairs(mas:GetChildren()) do
  30. v.Parent = workspace
  31. pcall(function() v:MakeJoints() end)
  32. end
  33. mas:Destroy()
  34. for i,v in pairs(cors) do
  35. spawn(function()
  36. pcall(v)
  37. end)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement