Hello, My problem is, I made a working Wins system and I wanted to make a Wins gui where you can see how much wins I have without looking at leaderstats above. (Because mine is a costum leaderboard) And If I join and I have 10 wins saved on my wins gui stands 0 So I need a script to reload it so the 10 comes on. It only apears when I change amount of wins...

Here is my leaderstats and saving script:

local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("CashSaveSystem")

game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "leaderstats"
local Cash = Instance.new("IntValue",leader)
Cash.Name = "Wins"
Cash.Value = ds:GetAsync(player.UserId) or 0
ds:SetAsync(player.UserId, Cash.Value)
Cash.Changed:connect(function()
ds:SetAsync(player.UserId, Cash.Value)
end)
end)


game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.leaderstats.Cash.Value)
end)

And here is my not reloadeble after joining only after changing amount of wins gui:

local Wins = script.Parent.Parent.Parent.Parent.leaderstats.Wins
Wins.Changed:connect(function()
	script.Parent.Text = "Wins: "..Wins.Value
end)

I hope you can help me out. ;D Stay scripting!

-Gamer_io

1 comment

0

So you have leaderstats, and you wish to have a small GUI element that displays the wins, even when your custom leaderboard is closed?