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

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
1
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
end

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.

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

Answer this question