My code is
local main = script.Parent.main
local Players = game:GetService("Players")
local AdminFrame = script.Parent.main
local ennablecommand = ";admin"
Players.PlayerAdded:Connect(function(plr)
print("Test")
plr.Chatted:Connect(function(msg)
if msg:lower() == "teste" then
AdminFrame.Visible = true
end
end)
end)
My discord for more fast asks: Zypsoh#8546

1 comment
iterate through the players using for i,v in pairs(Players:GetChildren()) do and then to reference the players you would use v instead of plr