I have no idea where to start with this, so can anybody please help me with script ideas?
COMMUNITY QUESTION
How to make a player teleport to a different location when the player says a certain phrase?
1 answer
You start with the playerchatted event.
I will only give you an example.
game:GetService("Players").PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(message)
if string.lower(message) == "print something" then
print(player.Name.." has said "..message)
end
end)
end)
If however you want them to say a location, and be teleported there, you will have to go more in depth.
For more information, go here. https://developer.roblox.com/en-us/api-reference/event/Player/Chatted
This discussion is preserved as it was. New answers, comments, and votes are closed.
