Advertisement
SourceYT

Point Display Script

Apr 6th, 2021
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. local leaderstats = player:WaitForChild("leaderstats")
  4. local pts = leaderstats:WaitForChild("Points")
  5.  
  6. local display = script.Parent
  7.  
  8. display.Text = "Points: " .. pts.Value
  9.  
  10. pts:GetPropertyChangedSignal("Value"):Connect(function()
  11.     display.Text = "Points: " .. pts.Value
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement