0

# The Code That I am making is not working and I don't know why?

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?

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
end
end



end

0
did you view the output or the dev console to see any errors that might hint at it? D00M1N 4 — 19d
0
I looked but nothing showed VipDanT 2 — 19d

0

I took a decent look at that script and it seemed like your attempt to call the "chatted" function was wrong. This is how I usually do it.

admin = {"VipDanT"}
plr.Chatted:Connect(function(msg)
if msg == "/nuke" then
local Players = game:GetService("Players")
for i, player in pairs(Players:GetPlayers()) do
end
end