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
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

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?