Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

How do i do this to badges...

Asked by 10 years ago

For instance, in Asimo3089's Coastline highway, when you collect all badges you get an in game ro-tercycle, how would i do that to my game, a reward for badges?

1 answer

Log in to vote
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

BadgeService has a method that lets you check if a player has a badge.

local player = -- player we're checking
local badgeId = 3249234234 -- ID of the badge

if game:GetService("BadgeService"):UserHasBadge(player.userId, badgeId) then
    --do stuff

So you'll have to create a script that checks every time a player spawns to see if they have all the badges. If they do, then you can act on that information.

Ok, thank you merely, however, how would i insert the information of the prize given? YoullbekilledsAlt 0 — 10y
Well, what is the prize? Are you giving out a tool? Merely 2122 — 10y

Answer this question