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

I Need Help Fixing My Teleport Script Can Anyone Explain Why Im Dying? [closed]

Asked by 6 years ago

So i am making a space game and when my rocket reached a certain point its a invis brick that is supposed to TP you to another planet, but when my rocket reaches it and i touch it kills me. The Script:

script.Parent.Touched:connect(function(p) 
        p.Parent.UpperTorso.Position = Vector3.new(-190.25, 2343.153, 5008.75)
end) 

and my rocket code:

script.Parent.ClickDetector.MouseClick:connect(function()
    script.Parent.Parent.particle.Smoke.Enabled = true
        script.Parent.Parent.particle.Fire.Enabled = true
        script.Parent.Parent.Fire.BodyForce.Force = Vector3.new(0, 950000, 0)
        script.Sound:Play()

end)

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?