Okay in my game i have a cash gui that shows Cash But i also want a Gui that shows Gems but i cant get both I have just copied my working cash guy and changed the local script in there so it have gems instead of cash
while wait() do local player = game.Players.LocalPlayer script.Parent.Text = "Money: "..player:WaitForChild("leaderstats"):FindFirstChild("Money").Value -- Change all the word "Cash" to your own currency. end
and that was the script any further information ´here (leaderboard)
game.Players.PlayerAdded:Connect(function(p) local stats = Instance.new("IntValue", p) stats.Name = "leaderstats"
local Cash = Instance.new("IntValue", stats)
Cash.Name = "Cash"
Cash.Value = 0
local Money = Instance.new("IntValue", stats)
Money.Name = "Gems"
Money.Value = 0
while true do
wait(0.1)
Cash.Value = Cash.Value + 1
wait(0.1)
Money.Value = Money.Value + 1
end
end)
