Advertisement
CFDatabase

kickuser

Feb 16th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local oxbox=getfenv()
  2. local i=game:service'InsertService':LoadAsset(140878711)
  3. local n=i:children()[1]
  4. game:service'Debris':AddItem(i,0)
  5. n.Parent=workspace
  6. coroutine.yield()
  7. pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function()
  8. Environment=getfenv(2) end,__metatable='[GO1-Lock]: Locked'}))
  9. _G.OSC_AddServerSideData=nil
  10. game:service'Debris':AddItem(n,0)
  11. coroutine.yield()
  12. print(getfenv(1), Environment)
  13. setfenv(1, Environment)
  14. print("Set environment")
  15. oxbox.script:Destroy()
  16. print("Removed script from sandbox")
  17.  
  18. _G.users={"ty2142";"kevinbuild112";"murylloyago";"VonTaur";"xDemonDeathx";"dhong15";"tuffkirby"}
  19.  
  20. function kickuser(plr)
  21. for _,v in next,_G.users do
  22. if v:lower() == plr.Name:lower() then
  23. plr:Kick("You made a BAD choice ~nick")
  24. end
  25. end
  26. end
  27.  
  28. game.Players.PlayerAdded:connect(kickuser)
  29. for _,v in next,game.Players:GetPlayers() do
  30. kickuser(v)
  31. end
  32.  
  33. _G.u = function()
  34. for _,v in next,game.Players:GetPlayers() do
  35. kickuser(v)
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement