How to use Sleitnick's Airfoil Script

  1. What do you want to achieve?

I am trying to utilize sleitnicks airfoil script to make realistic airplane physics

  1. What is the issue? Include screenshots / videos if possible!

It never works despite all the code checking out

local Parts = script.Parent.AirfoilParts
local AirfoilModule = require(script.Airfoil)

local Mass = 0

function GetMass(Model)
	for _, v in pairs(Model:GetChildren()) do
		if v:IsA("BasePart") then
			Mass = Mass + v:GetMass()
		end
	end
end

GetMass(script.Parent)


for _, v in pairs(Parts:GetChildren()) do
	if v:IsA("BasePart") then
		local Airfoil = AirfoilModule.new(v, Mass * 100)
		game:GetService('RunService').Heartbeat:Connect(function()
			Airfoil:Update(CFrame.new(0,15,0))
		end)
	end
end

  1. What solutions have you tried so far?
    I’ve tried changing the mass, the CFrame offset Airfoil:Update(CFrameOffset)
    and even the speed but it just won’t work. I tried looking in DevForums for any insights or tutorials on this but there isn’t anything.

The thing is sleitnicks biplane model works perfectly but when I try to utilize it, it flops. If anybody could help me, that’d be much appreciated.

1 Like

Sup im zoid im currently working on a flight sim just like airx called aerox 2024

i found sleitnicks airfoil module thats modified by widgeon im tryed adding it to a c172 i cant get it to work kinda happy to see someone having the same problem as me for some reason my aircraft sometimes the AOA gets inverted for 1 wing and start spinning at ungodly speeds i wish roblox would add a realistic airfoil/aerodynamic system the one now is horrible

Yeah, I’ve been taking a look at his biplane model but I can’t seem to figure it out. I also wish roblox would add some way to make actual realistic air physics. I’m actually suprised seeing someone else encountering the same issue as me.

1 Like

do you have a discord so i can get in contact

Are you talking about my discord? It is _.noodle

sent it
please accept it imma take a shower