admins = {"Surgo", "Noelzilla1"}
function isAdmin(name)
for i,v in pairs(admins) do
if name:lower() == v:lower() then return true end
end
return false
end
local door=script.Parent
game.Players.PlayerAdded:connect(function(p)
if isAdmin(p.Name) then
p.Chatted:connect(function(msg)
if msg=="!load_TDM_5" then
local Game1= game.Lighting.Bricktops
local c = Game1:clone()
c.Parent = game.Workspace
end
end)
end
end)
Won't work, anyone know why? |