Code:
local Money = Player:WaitForChild("leaderstats").Money
Code:
local Money = Player:WaitForChild("leaderstats").Money
It means thats money is equal to player.leaderstats.Money. For example, if you were to do
print(Player:WaitForChild("leaderstats").Money.Value)
local Money = Player:WaitForChild("leaderstats").Money
print(Money.Value)
The long string on the top is the same as the short one on the bottom, it prints out the value of "Money"
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
"Player" is the player. :WaitForChild(object) is the function that make the script wait until the object exist. And the variable "Money" will return the money of the Player.