I'm making chat commands for my game and I was wondering how I would make a chat command like ":givecash deathmaster607 532" but I don't know how to go past the player's name in the message to get to the number since I don't know how many characters they have in their name. (if that makes any sense)
Please help me if you know how!
deathmaster607 you dont need to do that there is already something like that build if you click esc then go settings scroll down and go to developer console click on server and type in game.Players.deathmaster607.leaderstats.cash.Value = 532
if this is what you were looking for use it and if you wanna reset peoples stats or something they need to be in the game
game.Players.(Players Name).(The Stat of leaderstats).(Currency).Value = amount