PointsService

Show Deprecated
Not Creatable
Service
Deprecated

The PointsService class controls points.

Points are an award system used to showcase a player's achievements and participation throughout Roblox. How points are awarded through this service is at the discretion of the game's developer.

Summary

Events

  • PointsAwarded(userId : number,pointsAwarded : number,userBalanceInGame : number,userTotalBalance : number):RBXScriptSignal

    Fires when points have been successfully awarded to a player, while also passing along the updated balance of points the player has in the current game and all games.

Properties

Methods

Events

PointsAwarded

Parameters

userId: number
pointsAwarded: number
userBalanceInGame: number
userTotalBalance: number

Code Samples

PointsService.PointsAwarded

local PointsService = game:GetService("PointsService")
local function onPointsAwarded(userId, pointsAwarded, userBalanceInGame, userTotalBalance)
print(
"User:",
userId,
"has now earned",
userBalanceInGame,
"(+",
pointsAwarded,
") points in the current game, now making their total balance",
userTotalBalance
)
end
PointsService.PointsAwarded:Connect(onPointsAwarded)