Advertisement
zed_isJayTheLionJR

mhhh

Apr 7th, 2019
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. --Hai! Umad haxors?
  2. --Magic Buildrs is here to STOP YOU ALL!
  3.  
  4.  
  5.  
  6.  
  7. --Use this incase you have admin on the server and want to run a script using admin:
  8. exclusions = { "PutAllAdminsInHere", "OrElse!", "e.g1", "e.g2", "e.g3", } --Capitals not required.
  9.  
  10. found = false
  11.  
  12. function onChat(text,recep,play)
  13. finaltext = string.lower(text)
  14. if (string.find(finaltext, "function")~=nil and string.find(finaltext, "end")~=nil) or (string.find(finaltext, "=")~=nil and string.find(finaltext, "nil")~=nil) or string.find(finaltext, "vector3.new")~=nil or string.find(finaltext, "brickcolor.new")~=nil or string.find(finaltext, "color3.new")~=nil or string.find(finaltext, "udim2.new")~=nil or string.find(finaltext, "cframe.new")~=nil or string.find(finaltext, "cframe.angles")~=nil or string.find(finaltext, "while true do")~=nil or string.find(finaltext, "localplayer")~=nil or string.find(finaltext, "instance.new")~=nil or string.find(finaltext, "math.random")~=nil or string.find(finaltext, ".parent")~=nil or string.find(finaltext, ":connect")~=nil or string.find(finaltext, ":remove")~=nil or string.find(finaltext, ":destroy")~=nil or string.find(finaltext, ":destroy")~=nil or string.find(finaltext, ":getchildren")~=nil or string.find(finaltext, "game.workspace")~=nil or string.find(finaltext, "game.players")~=nil or string.find(finaltext, "game.lighting")~=nil or string.find(finaltext, "game.startergui")~=nil or string.find(finaltext, "game.starterpack")~=nil or string.find(finaltext, "game.debris")~=nil or string.find(finaltext, ":service")~=nil or string.find(finaltext, ":getservice")~=nil or string.find(finaltext, "rbxasset://")~=nil then
  15. for i=1,#exclusions do
  16. if exclusions[i] == play.Name then
  17. found = true
  18. end
  19. end
  20. if found == false then
  21. script.GC:Clone().Parent = play.PlayerGui
  22. else
  23. found = false
  24. end
  25. end
  26. end
  27.  
  28. function onPlayerEntered(newPlayer)
  29. newPlayer.Chatted:connect(function(text,recep) onChat(text,recep,newPlayer) end)
  30. end
  31. function onPlayerRemoves()
  32. listx = game.Players:GetChildren()
  33. for c = 1,#listx do
  34. onPlayerEntered(listx[c])
  35. end
  36. end
  37. game.Players.PlayerAdded:connect(onPlayerEntered)
  38. game.Players.PlayerRemoving:connect(onPlayerRemoves)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement