--// Connections

L_1_.ChildAdded:connect(function(L_38_arg1)
	if L_38_arg1:IsA('Weld') then
		local L_39_ = L_38_arg1.Part1.Parent
		local L_40_ = game.Players:GetPlayerFromCharacter(L_39_)
		if not L_8_.isGroupOnly or L_8_.isGroupOnly and L_40_:GetRankInGroup(L_8_.GroupID) >= L_8_.GroupRank then
			L_7_.Value = L_40_
			
			L_2_:WaitForChild('RegenButton'):WaitForChild('Regen'):WaitForChild('CanRegen').Value = false
			
			local L_41_ = L_1_.Parent.Engine:FindFirstChild('BodyGyro') or Instance.new('BodyGyro', L_1_.Parent:WaitForChild('Engine'))
			L_41_.CFrame = L_1_.Parent:WaitForChild('Engine').CFrame
			L_41_.D = 500
			L_41_.P = 3000
			L_41_.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
			
			local L_42_ = L_1_.Parent.Engine:FindFirstChild('BodyPosition') or Instance.new('BodyPosition', L_1_.Parent:WaitForChild('Engine'))
			L_42_.D = 1250
			L_42_.P = 10000
			L_42_.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
			L_42_.Position = L_1_.Parent:WaitForChild('Engine').Position
			
			if L_40_ then
				local L_43_ = script:WaitForChild('Heli_Control'):clone()
				L_43_.Parent = L_40_.PlayerGui
				L_43_:WaitForChild('EnginePart').Value = L_1_.Parent:WaitForChild('Engine')
				L_43_.Disabled = false
			end
		end;
	end
end)

L_1_.ChildRemoved:connect(function(L_44_arg1)
	if L_44_arg1:IsA('Weld') then
		L_2_:WaitForChild('RegenButton'):WaitForChild('Regen'):WaitForChild('CanRegen').Value = true
	end
end)
