✓ Accepted answer
First of all, looks like you do not know what are events and if conditions. You cannot call a function between (if) and (then), also player has no function named (Chat), but you tried to call a function named (Chat). You can check Roblox Wiki for events, functions and properties. Here's a link .
Some tips for what you wanted to do: You can use Player.Chatted event for an admin script thing, and you can use Player:Kick() for kick a player.
Edit: Then try to use this:
Player = game.Players.LocalPlayer
Player.Chatted:connect(function(msg)
if string.sub(msg,1,5) == ":kick" then
Player:Kick("Get out of my place u fake admin")
end
end)
4 comments
Is this the full script?
You make me cry.
Ty for insulting me, You totally deserve those reputation points :D
Check the edit in my answer.