#talk to teleport

7 messages · Page 1 of 1 (latest)

dawn gate
#

how could i make a player teleport to another game if they said a specific phrase?

#

sorry if thats a dumb way to phrase that im new to actually making scripts

brazen tendon
#

Use Chatted event and check if the player said the specific phrase
Here is an example

plr.Chatter:Connect(function(message)
  local lowerCase = string.lower(message)
  if (lowerCase == "teleport")
    --do the teleport thing
end)
#

It should be something like this

#

You should make the text in lowercase to avoid any lower or upper letters problem
For example, if a player types "Teleport" and you are looking for "teleport" than the if statement wont work
Or if a player types "telEport", it would be the exact same

dawn gate
#

i didnt see until now

#

thank you