I want it so there is no cash stat in the leaderboard but to have it just in the GUI The scripts: Serverscript:
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Parent = plr
leaderstats.Name = "leaderstats"
local cash = Instance.new("IntValue")
cash.Parent = leaderstats
cash.Name = "Cash"
cash.Value = 0
while wait(60) do
cash.Value = cash.Value + 50
end
end)
The local script:
local textLabel = script.Parent.Frame.TextLabel
local cash = game.Players.LocalPlayer.leaderstats.Cash
cash.Changed:Connect(function()
textLabel.Text = "Cash: "..cash.Value
end)
