Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.PlanetTheo
- function chat(msg)
- if string.sub(msg,1,5) == "kick/" then
- pl = string.sub(msg,6)
- g = game.Players:GetPlayers()
- for i,v in pairs(g) do
- if string.find(string.upper(v.Name),string.upper(pl)) == 1 then
- v:remove()
- end
- end
- end
- end
- player.chatted:connect(chat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement