Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I can order it correct? [closed]

Asked by 7 years ago
Edited 7 years ago
01Player.Chatted:connect(function(chatmsg)
02                    local amount, user = chatmsg:match("give/(%d%d?%d?%d?)%s+([%w_]+)")
03                    if chatmsg == "give/(%d%d?%d?%d?)%s+([%w_]+)" then
04                      for _,a in pairs(game.Players:GetChildren()) do
05                       local player = string.match(a.Name, user)
06                        if player then
07                          player.Rubies.Value = player.Rubies.Value + (amount)
08                            end
09                          end
10                        end

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?