Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to give specific player money?

its not giving me 100 coins i get this error: ServerScriptService.rich:7: Expected identifier when parsing expression, got

--Locals--

local NomanCoins = game.Players:WaitForChild("Noman538").leaderstats.Coins.Value

--Main--

NomanCoins = 100+

I know im bad at scripting

2 comments

0

All you have to do is NomanCoins = NomanCoins + 100

0

wth is a noman

1 answer

✓ Accepted answer

Put the value you want to add in first, then add the value you want to it.

--Locals--
 
local NomanCoins = game.Players:WaitForChild("Noman538").leaderstats.Coins.Value
 
--Main--

NomanCoins = NomanCoins + 100

2 comments

0

I'm so bad but this is how it starts right? ty for help

0

This script basically, wait for a child to join in if their name = Noman538 then it checks for leaderstats and then add 100 coins as stated on line 7.

This discussion is preserved as it was. New answers, comments, and votes are closed.