PheonixStudio

Currency Gui show

Apr 20th, 2020
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --// Variables
  2. local plr = game.Players.LocalPlayer
  3. local Stats = plr:WaitForChild("leaderstats") -- Replace with where your leaderstats are located.
  4.  
  5.  
  6. --// Functions
  7. local function Update()
  8.     for i,v in pairs(Stats:GetChildren()) do
  9.         script.Parent[v.Name].Text = v.Value
  10.         v.Changed:Connect(function()
  11.             script.Parent[v.Name].Text = v.Value
  12.         end)
  13.     end
  14. end
  15.  
  16. Update()
Advertisement
Add Comment
Please, Sign In to add comment