How to make it so that in the first script of an object in the workspace (which makes the Money variable increase by one when the player touches a green ball), the Money variable is the same as the Money variable of the leaderboard (script in the ServerScriptService). I've been stuck for hours, help me!
#Variable transfer
1 messages · Page 1 of 1 (latest)
i'm new btw so it might be a dumb error
The goal of the script is that when the player touches a green ball, the leaderboard increases by one his Money
you can just do, when the player touch the part, it'll increase the money directly inside the leaderbord
so something like this Player.leaderstats.Money.Value += 1
and i paste this just after
elseif colorType == "Green" then
** You are now Level 1! **
?
yes
yeah so now nothing work
the full script say :
If you touch a green ball : Play a sound, make the ball disappear, and add 1 to the Money ( this part is bugged )
here is the full script btw
just replace my line by player.leaderstats.Money.Value += 1
IT WORKED ! YOU ARE THE GOAT !
np