function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "tp") then
game.Workspace.Player1.HumanoidRootPart.CFrame = CFrame.new(-1899.747, 492.098, -95.816)
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
Hello, I was wondering how to make this script work for all players. Right now it only teleport Player1. I tried lots of things and they do not work. For example:
recipient.Character.HumanoidRootPart.CFrame = CFrame.new(-1899.747, 492.098, -95.816)
speaker.Character.HumanoidRootPart.CFrame = CFrame.new(-1899.747, 492.098, -95.816)
Is there a special tag for a player or something?
Thanks.

2 comments
Check this out. Let me know if you need any clarification! http://wiki.roblox.com/index.php?title=Teleportation
speaker.Character should have worked.