Hello! I’m almost finished with a plane, but I need it to turn smoothly. I just don’t know how.
local db = true
UserInputService.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.Z then
while db == true do
wait(0.1)
planeSeat.CFrame = planeSeat.CFrame * CFrame.fromEulerAnglesXYZ(0, 000000000.1, 0)
BV.Velocity = planeSeat.CFrame.LookVector * 20
end
end
end)
UserInputService.InputEnded:Connect(function(key)
if key.KeyCode == Enum.KeyCode.Z then
planeSeat.CFrame = planeSeat.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
db = false
wait(0.1)
db = true
end
end)
Just so you know, I’m also doing this to turn right. (X KEY)
So, you know how to help me? Then, step right up to the comment section!
Thanks!