So, I do not know if I should be using a server script or local script. I have script, it does not work.
I want the player to teleport to part2 if they touch part1. The player should not be able to touch part1 to get to part2. Here is my script:
if script.Parent.IsTouched == true then
game.Workspace.Player.Position = game.Workspace.Part2.Position
end

2 comments
Should I use a server script or local script?
Nevermind, it worked.