So i made two parts, When you touch one off them it Telports you to the other part. Same with the other part. The two parts are inside a building and for some reason they tp up on the roof instead off the 1st floor to 2nd floor. Heres a screenshot (link to screenshot) to understand better:
1 | PartOne.Touched:Connect( function (Hit) |
2 | if Hit:IsA( "Humanoid" ) then |
3 | local Player = game.Players:GetPlayerFromCharacter(Hit.Parent) |
4 | Player.Character:SetPrimaryPartCFrame(X,Y,Z) |
5 | end |
6 | end ) |
It's quite simple, the player touches a part, and it teleports them to a specific Coordinate Frame, this is related to Vector3 but CFrame can supply much more than XYZ, containing the possibility to use Radians and etc.