This remote event should not fire when I am chatting this

Hello, how come this remote event fires when I say any word… It should only fire when I say those words though?

local player = game.Players.LocalPlayer
local Up = game.ReplicatedStorage.Up
local Down = game.ReplicatedStorage.Down
player.Chatted:Connect(function(message)
	if message == "up" or "above" then
		Up:FireServer() 
	elseif
		message == "down" or "below" then
		Down:FireServer()
	end
end)
1 Like

Your conditions are incorrectly written. You want:

message == "up" or message == "above"
and
message == "down" or message == "below"

The reason why your code is running all the time is because of the way or works, and that the string "above" is truthy. This causes the first condition to always satisfy the if block. If you change it to the above, you should be fine!

2 Likes

Ohh thanks. I forgot about that…