local admins = {"moo1210","Player","Player1"}
function tableContains(t, value)
for _, v in pairs(t) do
if v == value then
return true
end
end
return false
end
function onChatted(message, player)
if message == ":outscore" and tableContains(admins, player.Name) then
So am trying to make it so if I did :outscore 5 it would change a number value to 5 it is under ServerStorage and the number value is called Outscore. Please help me, Thanks! If anything is wrong in this script also help me with that. Post the full code for this command.

8 comments
...And if the player chats :outscore 6 then what?
You should be able to capture the argument(s) of the command using a subordinate string. That's what he's looking for, at least.
I'm not advanced enough a scripter to know how to capture a number in chat and transfer it to a number value.
What if you wanted to do :outscore 5 for that or :outscore 6 for that but that just gives me an idea ill make a 11 scripts one for 1 a other for 2 and up to 11.
Also can you just do = 5 if you don't want to add 5 just make it 5?
Please don't do that. That is a horribly ugly solution. I'll work on an answer.
yay :D
Okay @ScriptGuider do that. Thats what am looking for.