I have this script that gets the player’s height and if it’s below a certain amount it deploys a parachute. The issue is that this parachute doesn’t follow the players’ orientation when it is first spawned and I don’t know how to make it do that.
This is the code that spawns the parachute
while true do
if humanoidRootPart.Position.Y < 4400 and deployed.Value == true then
if parachuteEnabled then return end
if humanoidRootPart:FindFirstChild("Parachute") then return end
parachuteEnabled = true
local parachute = game.ReplicatedStorage:FindFirstChild("Parachute"):Clone()
parachute.CFrame = CFrame.new(humanoidRootPart.Position + Vector3.new(0, 5, -0.3))
parachute.Anchored = false
parachute.Parent = humanoidRootPart
local weld = Instance.new("WeldConstraint")
weld.Part0 = character:FindFirstChild("HumanoidRootPart")
weld.Part1 = parachute
weld.Parent = humanoidRootPart
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(0, -10, 0)
bodyVelocity.MaxForce = Vector3.new(0, 5500, 0)
bodyVelocity.Parent = humanoidRootPart
end
task.wait()
end