I’m trying to get the players leaderstats and display them with in a text gui but it’s not working. (the script is in a text label)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local PlayerStone = player:WaitForChild("leaderstats"):WaitForChild("Stone")
while wait() do
script.Parent.Text = PlayerStone
end
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local PlayerStone = player:WaitForChild("leaderstats"):WaitForChild("Stone")
PlayerStone:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = PlayerStone.Value
end)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
while wait() do
local PlayerStone = player:WaitForChild("leaderstats"):WaitForChild("Stone")
script.Parent.Text = PlayerStone.Value
end