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

Rocket Guided Path Systems?

Asked by 9 years ago

I have a rocket here that shoots directly from it's launch pad, and I don't want that. What I want it to happen is, I want the rocket to go up 50 studs, then go out to where it was sent. Here is the code I have, can someone try and edit it so that it goes up then out?

            if not LockedPlayer then
                local direction = (targetPosition - RocketClone.Position).unit
                rocketPropulsion.TargetOffset = RocketClone.Position + (direction * TARGET_OVERSHOOT_DISTANCE)
            else
                rocketPropulsion.Target = LockedPlayer.Character:FindFirstChild('Torso')
                --rocketPropulsion.ReachedTarget:connect(rocketPropulsion:Destroy())

The launch pad is referred to as the local variable of MLP

Answer this question