Im making a game and i need to know how to make a billboardGUI that says how much Player Points the player has.
Put this in the TextLabel/TextBox! Learn more about points here!
01 | local TargetId = "1" -- Change 1 to the player who's points you want to show [[This would show ROBLOX's points]] |
02 |
03 | local Target = "ROBLOX" -- Also change this to the player's name for display :3 |
04 |
05 | local PointsService = Game:GetService( "PointsService" ) -- Gets the points service! |
06 |
07 | local PointBalance = PointsService:GetPointBalance(TargetId) -- Creates a variable for the Point Balance |
08 |
09 | print (PointBalance) -- Prints points in output |
10 |
11 | script.Parent.Text = "" .. Target .. " has " .. PointBalance .. " player points!" -- Assuming this script is in the textlabel/textbox |