Hello Developers,
Is there a way where I can get the script to get only get children that isn’t named “Rear Live Axle”, I have been having trouble with this now.
Help would be appreciated.
Thanks.
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
if UIS:IsKeyDown(Enum.KeyCode.W) then
connection.Axles["Rear Live Axle"].Cringe.HingeConstraint.MotorMaxAcceleration = config.Acceleration
connection.Axles["Rear Live Axle"].Cringe2.HingeConstraint.MotorMaxAcceleration = config.Acceleration
-- Remoteevent:FireServer("normalaccel")
script.Parent.cargui.boost.Text = "boost = false"
for i, v in pairs(connection.Axles:GetChildren()) do
if v.Name == "Rear Live axle" then
return
end
end
for o, p in pairs(connection.Axles:GetDescendants()) do
if p:IsA("HingeConstraint") then
p.MotorMaxAcceleration = 0
end
end
end
end
end)