#I’m trying to make a car I made to back fire through 4 exhaust pipes only 2 out of the 4 in work

1 messages · Page 1 of 1 (latest)

sinful loom
#

Can some help me out script and video sent below

#

local FE = workspace.FilteringEnabled
local car = script.Parent.Car.Value
local handler = car:WaitForChild("Backfire_FE")
local _Tune = require(car["A-Chassis Tune"])

script.Parent.Values.Gear.Changed:connect(function()
if script.Parent.Values.RPM.Value>6000 then
if FE then
handler:FireServer("Backfire1")
wait (0.1)
else
car.Body.Exhaust.Backfire1.Backfire1:play()
car.Body.Exhaust.Backfire2.Backfire1:play()
car.Body.Exhaust.Backfire1.Fire.Enabled = true
car.Body.Exhaust.Backfire2.Fire.Enabled = true
car.Body.Exhaust.Backfire3.Backfire1:play()
car.Body.Exhaust.Backfire4.Backfire1:play()
car.Body.Exhaust.Backfire3.Fire.Enabled = true
car.Body.Exhaust.Backfire4.Fire.Enabled = true
wait (0.03)
car.Body.Exhaust.Backfire1.Fire.Enabled = false
car.Body.Exhaust.Backfire2.Fire.Enabled = false
car.Body.Exhaust.Backfire3.Fire.Enabled = false
car.Body.Exhaust.Backfire4.Fire.Enabled = false
wait (0.07)
end
end
end)

while wait() do

#

local randomability = math.random (1, 2)

local throtOff = script.Parent.Values.RPM.Value > 7500 and randomability <=1 and script.Parent.Values.Throttle.Value <= _Tune.IdleThrottle/100
local redline = script.Parent.Values.Throttle.Value > 0 and math.ceil(script.Parent.Values.RPM.Value) > _Tune.Redline-_Tune.RevBounce and script.Parent.Values.Gear.Value<#_Tune.Ratios-2

if throtOff or redline then
    if FE then
        handler:FireServer("Backfire2")
        wait (0.1)
    else
        car.Body.Exhaust.Backfire1.Backfire2:play()
        car.Body.Exhaust.Backfire2.Backfire2:play()
        car.Body.Exhaust.Backfire3.Backfire2:play()
        car.Body.Exhaust.Backfire4.Backfire2:play()
        car.Body.Exhaust.Backfire1.Fire.Enabled = true
        car.Body.Exhaust.Backfire2.Fire.Enabled = true
        car.Body.Exhaust.Backfire3.Fire.Enabled = true
        car.Body.Exhaust.Backfire4.Fire.Enabled = true
        wait (0.03)
        car.Body.Exhaust.Backfire1.Fire.Enabled = false
        car.Body.Exhaust.Backfire2.Fire.Enabled = false
        car.Body.Exhaust.Backfire3.Fire.Enabled = false
        car.Body.Exhaust.Backfire4.Fire.Enabled = false
        wait (0.07)
    end
end

end

little current
ruby pelican
#

ever heard of OOP 😭

#

yo we shouldn't hate atleast hes trying todo it himself and not copy pasting chatgpt