Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-4

Errors [closed]

Asked by 10 years ago
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)
0
Lol nvm i found it. DeveloperAtWork 14 — 10y

Closed as Not Constructive by Unclear

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?