so I have this code that is suppose to give a badge when the word "/nuke" is said by me, but it doesnt work! Anyone know why? admin = {"VipDanT"}
if admin.Chatted "/nuke" then local badgeservice = game:GetService("BadgeService") local badgeId = 2128480065 local Players = game:GetService("Players")
local function giveBadges(id) -- allows you to call giveBadges (with the ID as the first parameter) to give every player in the server a badge.
for i, player in pairs(Players:GetPlayers()) do
badgeservice:AwardBadge(player.UserId , id)
end
end
giveBadges(badgeId)
end

2 comments
did you view the output or the dev console to see any errors that might hint at it?
I looked but nothing showed