RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if people say the word hi they get kicked out the game"
-- server script local Players = game:GetService("Players") local function onPlayerChatted(player, message) if string.lower(message) == "hi" then player:Kick("You have been kicked from the game for saying 'hi'.") end end Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onPlayerChatted(player, message) end) end)