Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Variables
- local plr = game.Players.LocalPlayer
- local Stats = plr:WaitForChild("leaderstats") -- Replace with where your leaderstats are located.
- --// Functions
- local function Update()
- for i,v in pairs(Stats:GetChildren()) do
- script.Parent[v.Name].Text = v.Value
- v.Changed:Connect(function()
- script.Parent[v.Name].Text = v.Value
- end)
- end
- end
- Update()
Advertisement
Add Comment
Please, Sign In to add comment