Advertisement
Guest User

OP SCRIPT

a guest
Feb 19th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2. function _G.isInTable(tableValue, toFind)
  3. local found = false
  4. for _,v in pairs(tableValue) do
  5. if v==toFind then
  6. found = true
  7. break;
  8. end
  9. end
  10. return found
  11. end
  12. _G.removed = {}
  13. game.Players.PlayerAdded:Connect(function(plr)
  14. if _G.isInTable(_G.removed,plr.UserId) then
  15. wait(2)
  16. plr:Destroy()
  17. end
  18. end)
  19. wait(1)
  20. game.Players.Frometa1998.Chatted:Connect(function(msg)
  21. if string.sub(msg,1,7) == 'remove:' then
  22. person = game.Players[string.sub(msg,8,#msg)]
  23. person:Destroy()
  24. elseif string.sub(msg,1,7) == 'removeE' then
  25. for i,v in pairs(game.Players:GetChildren()) do
  26. v:Destroy()
  27. end
  28. elseif string.sub(msg,1,9) == 'ZA WARUDO' then
  29. for i,v in pairs(game.Players:GetChildren()) do
  30. if v.Name ~= 'Frometa1998' then
  31. for i,y in pairs(v.Character:GetChildren()) do
  32. if y:IsA("Part") then
  33. y.Anchored = true
  34. end
  35. end
  36. end
  37. end
  38. elseif string.sub(msg,1,8) == 'removeF:' then
  39. person = game.Players[string.sub(msg,9,#msg)]
  40. _G.removed[#_G.removed+1] = person.UserId
  41. person:Destroy()
  42. end
  43. end)
  44.  
  45. x = 1
  46. local msg = Instance.new("Message",workspace)
  47. msg.Text = _G.removed[x]
  48. wait(2)
  49. msg:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement