So Im trying to make a command where if a developer chats "/kick (players name)" it kicks them, but i'm super confused on how to reference the player. Any help?
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == "/kick"..game.Players:GetPlayers().Name then
game.Players:GetPlayers().Name:Kick()
end
end)
end)

3 comments
How about a while true do loop and for loop that consistently checks if there is a player in the game who is a developer? If they are then you can execute the code however you want.
That's not the problem, the problem is I can't reference the player from a message.
Oooh.