#Variable transfer

1 messages · Page 1 of 1 (latest)

somber oxide
#

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!

#

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

sage spade
#

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

somber oxide
#

and i paste this just after
elseif colorType == "Green" then

shell moonBOT
#

studio** You are now Level 1! **studio

somber oxide
#

?

sage spade
#

yes

somber oxide
#

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

sage spade
#

just replace my line by player.leaderstats.Money.Value += 1

somber oxide
#

IT WORKED ! YOU ARE THE GOAT !

sage spade
#

np