How do you make a platform, and it will give you a badge when your character touches it?
Question #1
How do you make a platform, and it will give you a badge when your character touches it?
Question #1
If you create a badge and upload it to a place, ROBLOX will automatically put a badge giver model in your models. Just use that.
Use BadgeService and see the what you can do with the service,
Local BS=Game:GetService("BadgeService")
local PS=Game:GetService("Players")
local bin=script.Parent
local BadgeID=512893 --Works as long as you're the owner of a certain badge with certain ID
bin.Touched:connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid").Health~=0 then
local player=PS:GetPlayerFromCharacter(Hit.Parent) if player then
if player.userId<=100==nil then --[[Makes sure guests can't use it, without this line, guests would glitch the script, I think.]]
BS:AwardBadge(player.userId,BadgeID) end end end)
Well, when the badge is made, go into Roblox Studio. Make sure you have the Tool Box open, if you dont have it open, go to View -> Tool Box. Click My Models which is one of the options on the tool box. Your badge should be in there. The script is already in side the badge awarder!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks for your advice, Just wanted to know before Uploading a badge.