Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(player)
- -- Listen for chat messages from the player
- player.Chatted:Connect(function(message)
- -- If the player types "hi"
- if message:lower() == "hi" then
- -- Find another player in the game
- local targetPlayer = game.Players:GetPlayers()
- for _, target in ipairs(targetPlayer) do
- if target ~= player then
- -- Make the target player say "hi" in the chat
- target:Chatted("gay")
- break
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement