Hi!
This can be a very frustrating problem!
Luckily it has a very simple solution!
I believe what you are trying to accomplish can be done with this code here:
function onClicked(plr)
plr.Character.HumanoidRootPart.CFrame = CFrame.new(script.Parent.Parent.Click2.Position + Vector3.new(0,4,0))
end
script.Parent.ClickDetector.mouseClick:connect(onClicked)
When a player clicks the part that this script is in, it will TP ONLY the player that clicked, to the part named "Click2".
The reason I added:
+ Vector3.new(0,4,0)
is to prevent the player from getting jammed in to the part that they are teleporting to.
It means move the player an additional 4 studs UP from the location it is teleporting to.
There is also a great Roblox Wiki article that demonstrates this. I refer to it all the time!
http://wiki.roblox.com/index.php?title=Teleportation
Hope this Helps :D
Let me know if you have any more questions!
If this solves your problem, remember to accept this answer. It helps me out a bunch and so others can see the solution.
Cheers!
WindNT
1 comment
Thanks!