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

How can i fix this function in my space ship?

Asked by 9 years ago

So the ship works fine, I will be honest that it is not my scripts, but it is a cool ship. one of the things I am trying to do is make solar sails that float around the ship, and expand futhur away from the ship as the speed increases, This is the acceleration script. and I would like whenever I accelerate it goes out further

~~~~~~~~~~~~~~~~~

elseif key == "a" and warp == false then

script.Parent.Parent.Parent.Parent.sail.CFrame = script.Parent.Parent.Parent.Parent.sail.CFrame+Vector3.new (0,5,0)
    if a < inertia*50 and hover == true then
        a = a + inertia*10
    elseif a < inertia*100 and hover == false then
        a = a + inertia*10

    end

~~~~~~~~~~~~~~~~~

another thing is I would like the sail to float around the ship without any connectors,

PLEASE HELP

Answer this question