Player.Chatted:connect(function(chatmsg)
local amount, user = chatmsg:match("give/(%d%d?%d?%d?)%s+([%w_]+)")
if chatmsg == "give/(%d%d?%d?%d?)%s+([%w_]+)" then
for _,a in pairs(game.Players:GetChildren()) do
local player = string.match(a.Name, user)
if player then
player.Rubies.Value = player.Rubies.Value + (amount)
end
end
end
COMMUNITY QUESTION
How do I can order it correct?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
