RS.LevelEvents.MapChooser.Event:Connect(function()
RS.LevelEvents.YellowLevelEvent.Event:Connect(function()
print("YellowLevel Selected")
MapLoaded = true
YellowLevel:SetPrimaryPartCFrame(workspace.PrimaryParts.YellowLevelPrimaryPart.CFrame)
while MapLoaded == true do
RS.LavaEvent.Event:Connect(function()
MapLoaded = false
--Badge Giver--
for _, player in pairs(game.Teams.Player:GetPlayers()) do
game:GetService("BadgeService"):AwardBadge(player.UserId, 2130230287)
end
----------------------------
end)
wait()
end
YellowLevel:SetPrimaryPartCFrame(workspace.PrimaryParts.YellowLevelUnloaded.CFrame)
end)
Any errors in the output? Have you checked to make sure that the given code runs (by print statements)? Also, what are the ‘LevelEvents’? And why do you have the event connected to another event?
There are zero errors, I have checked and the code runs. LevelEvents is a folder with BindableEvents that fire from a separate script to this one.
Looking at the documentation reference, there appear to be some conditions that must be met for a badge to be successfully awarded. Please look through these conditions and make sure they are all met in your script.
All these conditions have been met
I’m just really stupid. The badges are given, it’s just delayed by about a minute
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
