SOLVED BY MYSELF
01 | names = { "zZGalaxySolarManZz" } |
02 |
03 | game.Players.PlayerAdded:connect( function (Player) |
04 | for i, v in pairs (names) do |
05 | if v = = Player.Name then |
06 | Player.Chatted:connect( function (chatmsg) |
07 | local amount, user = chatmsg:match( 'give/(%d%d?%d?%d?)%s+([%w_]+)' ) |
08 | if amount ~ = nil and user ~ = nil then |
09 | for _,a in pairs (game.Players:GetChildren()) do |
10 | local Find = a.Name |
11 | local player = string.match(Find, user) |
12 | if player then |
13 | local Get = game.Players:FindFirstChild(player) |
14 | Get.PlayerData.Rubies.Value = Get.PlayerData.Rubies.Value + (amount) |
15 | end |