Skip to content

AchievementsService

Inherits Instance

Service for managing achievements

Static Class

This object is a static class. It can be accessed like this: Achievements.

Additionally, it cannot be created in the creator menu or with Instance.New().

Not newable

This object cannot be created by scripts using Instance.New().

Properties

UseAchievementSound : boolean

Determine if achievement sound effect should play when user receives an achievement

NotifyAchievements : boolean

Determine if achievement toast should show when user receives an achievement

Methods

AwardAsync → nil

Parameters

userID [ number ]

achievementID [ number ]

Award achievement to the user asynchronously.

HasAchievementAsync → boolean

Parameters

userID [ number ]

achievementID [ number ]

Check if player of ID has the achievement, asynchronously.

Events

GotAchievement

Parameters: achievementID [ number ]

Fires when the local player got an achievement