game.Players.PlayerAdded:Connect(function(plr)
local ls = Instance.new("IntValue", plr)
ls.Name = "leaderstats"
local rc = Instance.new("NumberValue", plr)
rc.Name = "RealMoney"
local c = Instance.new("StringValue", ls)
c.Name = "Money"
c.Value = "$"..rc.Value
COMMUNITY QUESTION
Can someone tell me what these variables do?
1 answer
This worked for me. c.Value = 5 rc.Value = 5
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Can you show me the full script? i think there must be some script that if i see it will make me understand
ok ive edited it
It's a leaderboard/leaderstats script. When the player joins the game, ls is created which is an abbreviation for leaderstats. Then rc is real cash and is the child of leaderstats or "ls" and c also.
How can I then change the value of the Money or Real Money / starting cash becasue the leaderboard gets created in game
You can change the starting value just by doing c.Value = 5. For adding to it, do c.Value = c.Value + 5
Thanks
I want to thank you again because I was trying to fix this problem for 3 days