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 my canopy to open and close without the whole plane rotating.
What is the issue? Include screenshots / videos if possible!
The whole plane rotates and not just the canopy. I had it working earlier I don’t know what happened since I’m doing the same thing I was doing earlier right now.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to use a Motor6D and a WeldConstraint to attach the canopy to the plane.
local Variables = script.Variables -- Folder of bool values
local Canopy = script.Parent.Canopy -- Model
Variables.Canopy:GetPropertyChangedSignal("Value"):Connect(function()
local currentPivot = Canopy:GetPivot()
local openPivot = currentPivot * CFrame.Angles(0, 0, math.rad(65))
local closedPivot = currentPivot * CFrame.Angles(0, 0, math.rad(-65))
if Variables.Canopy.Value == true then tweenCanopyOpen() return end
if Variables.Canopy.Value == false then tweenCanopyClose() return end
end)
it looks like the PLANE is connected TO the Canopy. instead it should be the canopy that is connected to the plane. meaning that the plane is the main part. also, if that doesnt work, you can try using motor6ds and animating it with an animation controller.
animating objects is the easiest thing you could ever do. just connect with a motor6d. add an animation controller in the model. and animate. then upload just like a normal animation. when you want to play it, it is the same code but instead of a humanoid its the animation controller. . if you do it that way you can have more control over how it opens and make it look nicer. also, you can just make a loop of the conopy open, when you want it open do :Play(3) for the loop. this makes it take 3 seconds to go up making it smooth without an open animation. when you want to close it do :Stop(3).hope this helps. if it works let me know I am interested!
you can make an animation that is just one keyframe where the canopy is held up but make sure it is looping. change the animation priority so that it is less than the animation going up. play it at the same time as the other animation