Hi! I have this script, but it's not working for some reason. It's supposed to teleport the player to a certain point once they say a certain word.
local word = "word" --Here's where I'd put the word.
local plrs = game:GetService("Players")
local brick = path --pathway to the brick I want to tp them to.
plrs.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
msg = msg:lower()
if msg == word then
plr.Character.HumanoidRootPart.CFrame = brick.CFrame
end
end)
end)
