Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Hai! Umad haxors?
- --Magic Buildrs is here to STOP YOU ALL!
- --Use this incase you have admin on the server and want to run a script using admin:
- exclusions = { "PutAllAdminsInHere", "OrElse!", "e.g1", "e.g2", "e.g3", } --Capitals not required.
- found = false
- function onChat(text,recep,play)
- finaltext = string.lower(text)
- 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
- for i=1,#exclusions do
- if exclusions[i] == play.Name then
- found = true
- end
- end
- if found == false then
- script.GC:Clone().Parent = play.PlayerGui
- else
- found = false
- end
- end
- end
- function onPlayerEntered(newPlayer)
- newPlayer.Chatted:connect(function(text,recep) onChat(text,recep,newPlayer) end)
- end
- function onPlayerRemoves()
- listx = game.Players:GetChildren()
- for c = 1,#listx do
- onPlayerEntered(listx[c])
- end
- end
- game.Players.PlayerAdded:connect(onPlayerEntered)
- game.Players.PlayerRemoving:connect(onPlayerRemoves)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement