I'm having trouble finding a good script for this so i'll ask here. What I need: When a player types for an example: "3591" The player will get teleported to some coordinates.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) player.Chatted:Connect(function(message) if message == "SecretMessage" then character.HumanoidRootPart.Position = Vector3.new(X,Y,Z) -- Change X,Y,Z with your position. end end) end) end) --[[ The script will listen to player.Chatted event when his Character is added. If the variable message is "SecretMessage" then the script will change player's HumanoidrootPart to the position X,Y,Z. --]]