|
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
loadstring(msg)()
end)
end)
if i say something like "ok" it breaks cause its not a valid script/whatever |
|
|
oo sorry wrong place thought this was scripting helpers pls dont game.Players.verbalAKspray:Destroy() |
|
|
loadstring was screwed real bad by roblox
like ur mom |
|
|
lokkutJoin Date: 2009-03-18 Post Count: 1794 |
plz stay i like u |
|
|
ily2 but i must go
kfc calling me |
|
|
pcall(function()
loadstring(msg)
end)
profit1?? |
|
osedayJoin Date: 2008-08-27 Post Count: 1308 |
That works? With pcall, it works? |
|
|
My point is that as long as he has loadstring on the script won't error if he trys loadstringing 'Hi' or bye
|
|
|
yea pcall works, someone suggested that a while after i reposted this on SH |
|
|
or you could do
if msg:sub(1,3) == "/s " then
loadstring(msg:sub(4))
end |
|
|
|