Every time I say a single word or letter it will always teleport me even though I don't want it to. I just want me to teleport me when I say what I put in it.
Here is the code:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(raw_msg)
local msg = raw_msg:lower()
if msg == ":cmds" or ";cmds" or "/cmds" or ":cmd" or ";cmd" or "/cmd" or
":commands" or ";commands" or "/commands" or ":command" or ";command" or "/command"
then
local char = player.Character
local humanroot = char:WaitForChild("HumanoidRootPart")
humanroot.Position = game.Workspace["Secret room
1"]:WaitForChild("Punish").Position + Vector3.new(0, 1, 0)
end
end)
end)