You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a plane tilt that makes it so the plane will roll a little when turning -
What is the issue? Include screenshots / videos if possible!
The plane tilts, but when it tilts it will stop for a second, and then keep going -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have no idea where to start
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local seat = script.Parent
local front_speed = 50
local up_speed = 5
local max_height = 100
local DT = false
local T
while task.wait() do
script.AngularVelocity.AngularVelocity = Vector3.new(0, -1 * seat.Steer, 0)
if seat.Steer == 1 and DT == false then
print("Right")
seat.Orientation += Vector3.new(0, 0, -30)
DT = true
T = "R"
end
if seat.Steer == -1 and DT == false then
print("Left")
seat.Orientation += Vector3.new(0, 0, 30)
DT = true
T = "L"
end
if seat.Steer == 0 and DT == true then
print("Left")
if T == "L" then
seat.Orientation += Vector3.new(0, 0, -30)
else
seat.Orientation += Vector3.new(0, 0, 30)
end
DT = false
end
if seat.Throttle == 1 then
OnSeat = true
script.LinearVelocity.VectorVelocity = Vector3.new(0, up_speed, -front_speed)
end
if seat.Throttle == -1 then
script.LinearVelocity.VectorVelocity = Vector3.new(0, -up_speed, -front_speed)
end
if seat.Throttle == 0 then
script.LinearVelocity.VectorVelocity = Vector3.new(0, 0, -front_speed)
end
if seat.Throttle ~= 1 and math.round(seat.Position.Y - seat.Size.Y / 2) == 0 then
script.LinearVelocity.VectorVelocity = Vector3.new(0, 0, 0)
end
if seat.Position.Y + seat.Size.Y / 2 > max_height then
script.LinearVelocity.VectorVelocity = Vector3.new(0, -up_speed, -front_speed)
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.