Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Im trying to make star launcher. Help?

Asked by 8 years ago

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

0
Changing Part's position breaks any joints attached to it. Use CFrame instead. Just replace Position with CFrame, that's all. LetThereBeCode 360 — 8y
0
Thanks So Much! connor12260311 383 — 8y

Answer this question