How would i give a player cash if there name starts with a number?

ya the title just says it all :laughing:

game.Players.1RxC0.leaderstats.TimeAlive.Value = 7000
1 Like
local letter = ''

if plr.Name:sub('')[1] == letter then
  -- do code

Of you meant if it was a number?

local num= plr.Name:sub('')[1]

if tonumber(num) then
  -- do code

@Tunnells Updated

You can give it like this :

game.Players["1RxC0"].leaderstats.TimeAlive.Value = 7000

Not that i mean like the user is in my game how would i give him cash since his name starts with a 1