So I have a money Gui where I want a players leader stats data store amount to show up in the Gui, but fore some reason its not working please help!
local stats = game.Players.LocalPlayer.leaderstats:FindFirstChild("Coins") -- Change "Coins" To your sort of currency.
stats.Changed:Connect(function()
script.Parent.Text = stats.Value
end)
local stats = game.Players.LocalPlayer.leaderstats:WaitForChild("Coins") -- Change "Coins" To your sort of currency.
game:GetService("RunService").Heartbeat:Connect(function()
script.Parent.Text = stats.Value
end)
Your script looks fine. The problem probably is with your “Coins” Value. Where is it? The script expects it to be under game.Players.Plethoa.leaderstats.Coins.
If you include a screenshot of your object explorer it will be easy to find the problem. Please also include where the script is found.