I'm trying to make it so that you get to a point one step at a time by teleporting to one part at a time

function Teleport()

local H = script.Parent.Parent.Parent.Parent:FindFirstChild("Head")

H.Position = game.Workspace.StarPath.p1.Position

wait(0.1)

H.Position = game.Workspace.StarPath.p2.Position

wait(0.1)

H.Position = game.Workspace.StarPath.p3.Position

wait(0.1)

H.Position = game.Workspace.StarPath.p4.Position

wait(0.1)

H.Position = game.Workspace.StarPath.p5.Position

end

This is the function, not the whole script.

Troubles: When I touch the teleporter, I die

2 comments

0

Changing Part's position breaks any joints attached to it. Use CFrame instead. Just replace Position with CFrame, that's all.

0

Thanks So Much!