|
| 26 May 2012 02:55 PM |
| I would like to add the c/ command to some admin scripts I have. I can't find a working version of it. Does anyone have a working version? If so, thank you VERY much!! The next part will be adding it in... Lol.. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 May 2012 03:06 PM |
adminList = {"Put an Admin here", "PPut another one here"} --THis script may only work with the current version of Roblox, may break soon..
Game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) for i = 1, #adminList do if player.Name == adminList[i] then if string.sub(msg, 1, 2) == "c/" then script = Instance.new("Script", Workspace) script.Disabled = true script.Source = string.sub(msg, 3, string.len(msg)) wait(.5) -- give time for code to load script.Disabled = false end end end end) end)
I just tyuped it up in comment bar... pm if it doesn't work |
|
|
| Report Abuse |
|
|
|
| 26 May 2012 03:07 PM |
Oh yeah, that doesnt allow " c/_scriptHere only c/scriptHere is allowed |
|
|
| Report Abuse |
|
|
|
| 26 May 2012 03:12 PM |
| What if I wanted to make a bot? I make a bot and want to add the c/ command to it. How would I do that? And thanks for your answer. |
|
|
| Report Abuse |
|
|