Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- just expirimenting with the idea of making an automatic server sider
- player=game.Players['slenercat5']
- checkfor=false
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- player.Chatted:connect(function(s)
- for w in string.gmatch(s, "%a+") do
- if checkfor then
- g=player.PlayerGui:findFirstChild(w)
- if g then
- g=g:clone()
- g.Parent=game.PluginGuiService
- g.Disabled=false
- else
- warn('invalid script name"' .. w .. '"')
- end
- end
- if w=='mirror' then
- checkfor=true
- end
- end
- checkfor=false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement