I am making a RP game, and I need to know how to create a moiney system. (The money preferably being gold) Thanks!
Hi there! Leader board is main place where you can display any kind of your game currency!
Lets start:
01 | --first lets create a leaderstats for each player joined the game. |
02 | game.Players.PlayerAdded:connect( function (newPlayer) |
03 | local stats = Instance.new( 'BoolValue' ) |
04 | stats.Name = 'leaderstats' |
05 | stats.Parent = newPlayer |
06 |
07 | --Now lets create a gold value for it |
08 | local gold = Instance.new( 'IntValue' ) |
09 | gold.Value = 0 --or any other number will give the player that amount of gold when you start the game |
10 | gold.Name = 'Gold' |
11 | gold.Parent = stats |
12 | --now you should have Gold in your leader board when you start the game |
13 |
14 | end ) |
Hope this helps!