How do you check how many Roblox Points you have and put it into a value? I have attempted this script:

local PointsService = Game:GetService("PointsService")
local RP = script.Parent.RP
local player = script.Parent.Parent.Parent.Name

-- What is the RP Balance?
local RPBalance = PointsService:GetPointBalance(player.userId)
-- Check if RPBalance is more that 0
	if RPBalance > 0 then
	RP.Value = RPBalance.Value
	end

4 comments

0

Where is the script located?

0

In a ScreenGUI

0

Have you tried a LocalScript? If it works, you can change player to player = game.Players.LocalPlayer

0

Cant, GetPointBalance is only ServerScript