Admins = {"DeveloperAtWork"}
function isPlayerAdmin(name)
for i,v in pairs(Admins) do
if string.lower(name) == string.lower(v) then
return true
end
end
end
function chatted(msg,rec)
if msg:lower() == "Alarm" then
for i,v in pairs(game.Players:GetChildren()) do
v.Playergui.Alarm.Frame.Visiable = true
end
end
end
function playerAdded(newplayer)
if isPlayerAdmin(newplayer.Name) then
newplayer.Chatted:connect(chatted)
end
end
game.Players.PlayerAdded:connect(playerAdded)
COMMUNITY QUESTION
Errors
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Lol nvm i found it.