Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do make a player get teleported if they something in chat?

1 answer

✓ Accepted answer
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.
--]]

This discussion is preserved as it was. New answers, comments, and votes are closed.