I'm adding this to my RPG, but when I tested it it aint no working. And I have no idea how to "make it work"
admins = {"Player", "dragonmaster4111"}
game.Players.PlayerAdded:connect(function(plr)
for i,v in pairs(admins) do
if v == plr.Name then
plr.Chatted:connect(function(msg)
if msg:sub(1,5) == ";gold" then
plr.leaderstats.Gold.Value = msg:sub(7)
end
end)
end
end
end)
ALRIGHT AFTER I'VE TESTED FOR THE FIFTH TIME, IT WORKED!

1 comment
I'm testing it online.