the problem that happened to me is that I did all this code right and it didn’t work, what’s wrong here?
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
local id = 2124958957
local Creadores = {"aba1231900","SofoCrack2020","cuentaprueba123899" , "Drxgo_XD", "RexCaft_357", "DevLunzar", "robertomonica", "itz_alejandrovip23","LONS289","prince11and2","YarelaDeveloper","JaxonRelaxinYt","ScratchyDragon","Wolves_Messi","Snacky303","SOTR654" }
Players.PlayerAdded:Connect(function (player)
player.CharacterAdded:Connect(function(character)
for i in pairs(Creadores) do
if Creadores [ i] == player.Name then
local HumanoidRootPart = character.HumanoidRootPart
HumanoidRootPart.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local PlayerGanador = Players:GetPlayerFromCharacter(hit.Parent)
BadgeService: AwardBadge(PlayerGanador.UserId,)
print("emblema concedido")
end`