Still have questions? Join our Discord server and get real time help.
Log in to vote

How do i do this to badges...

Asked by 6 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 2117 Moderation Voter Community Moderator
6 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 — 6y
Well, what is the prize? Are you giving out a tool? Merely 2117 — 6y

Answer this question