Hello! I was trying to get a badge’s info, but came across this error:
Here’s my code:
local badgeId = 6319855491
torso.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local ui_functions = require(game.ServerScriptService.Modules.UI_Functions)
local badgeService = game:GetService("BadgeService")
local badgeInfo = badgeService:GetBadgeInfoAsync(badgeId)
print(player.Name.." has been awarded the "..badgeInfo.Name.." badge! ID: "..badgeId)
Does anyone know a fix?
Line 10 is the print statement
I shortened the code which is why you don’t see end statements