Why wont the chatted event work? Its not even printing msg? (Thank you if you reply)
local Admins = {"andrewplayer", "SarnikZorion1", "xBlitzIV", "JoJoParkerx"}
local command = "/r"
function TeleportPlayer(Torso)
if not Torso then return end
if Torso then
Torso.CFrame = CFrame.new(script.Parent.CFrame * CFrame.new(0, 5, 0))
end
end
function Check(playerName)
for i = 1, #Admins do
if string.upper(Admins[i]) == playerName then
return true
end
end
end
game.Players.PlayerAdded:Connect(function(player)
local source = string.upper(player.Name)
Check(source)
if Check() == true then
player.Chatted:Connect(function(msg)
print(msg)
end)
end
end)