[A-Chassis] Weird issue with Misc welding, all of my friends are stumped as to what's going on

I have a ground ladder on a fire engine in my game, that comes down for you when you press a button. But suddenly, every part, other than the actual mesh of the ladder, appears to not be welded and falls into the abyss before A-Chassis initializes.

Some extra info:

  • This is an A Chassis Vehicle
  • This was working before, but I did something, and I wasn’t sure when, that must’ve caused it to break
  • For anyone that knows what system I’m using, yes, the “SS” and part in the body are in the exact same spot.
  • None of the parts are problematic, I tested this by disabling all scripts that had anything to do with it, then putting it in the Body. None of those random parts fell.
  • The only error in the Output is something I can’t understand, though I’ve never seen it before.
  09:22:51.798   ▶ Clamped specified Density value of 0 to 0.01. Acceptable range is 0.01 to 100 (x100)  -  Server - Initialize:76
  09:22:51.821  Encountered 100 clamping events of physical properties.  No further warnings will be reported

This error is for the initialize script in A-Chassis.

I’ve tried very hard using friends on discord, but we were all stumped too. I couldn’t find anyone that had an issue like this specifically that could’ve been applied to my error.

The only lines of any scripts that have anything related to the ladder are:

  • Welding Script
local P			= script.Parent
local mainPart	= P.SS
----- NO EDITING BELOW -----
local weldedParts = {}
table.insert(weldedParts,mainPart)

function Weld(x, y)
	weld = Instance.new("Weld") 
	weld.Part0 = x
	weld.Part1 = y
	local CJ = CFrame.new(x.Position) 
	weld.C0 = x.CFrame:inverse() * CJ  
	weld.C1 = y.CFrame:inverse() * CJ  
	weld.Parent = x	
	table.insert(weldedParts,y)
end

function WeldRec(instance)
	local childs = instance:GetChildren()
	for _,v in pairs(childs) do
		if v:IsA("MeshPart") then
			Weld(mainPart, v)
		end
		WeldRec(v)
	end	
end

WeldRec(P)
--WeldRec(P.Parent.Lights)

for _,v in pairs(weldedParts) do
	if v:IsA("MeshPart") then
		v.Anchored = false
	end
end

script:Destroy()
  • Motor creation
local Ladder = Instance.new("Motor", script.Parent.Parent.Misc.Ladder.SS)

Ladder.MaxVelocity = 0.0035
Ladder.Part0 = script.Parent.Ladder
Ladder.Part1 = Ladder.Parent
  • Turns on the lights inside the ladder
local state = false
seat = script.Parent.Parent.Parent.Parent.DriveSeat

local TweenService = game:GetService("TweenService")
local BATTON = script.Parent.BATTON:GetChildren()
local BATTON2 = script.Parent.Parent.Parent.Parent.Misc.Ladder.Ladder.Lights:GetChildren()

script.Parent.ClickDetector.mouseClick:connect(function(touched)
	state = not state
	if state and script.Parent.Parent.Values.BatteryActive.Value == true then
		script.Parent.ON.Transparency = 0
        script.Parent.OFF.Transparency = 1
        script.Parent.Base.Start:Play()
        wait(script.Parent.Base.Start.TimeLength)
        script.Parent.Base.Idle:Play()
		wait(1)
		seat.Disabled = false
		for i = 1,#BATTON do
			BATTON[i].Light.Enabled = true
			BATTON[i].Transparency = 0
		end
		for i = 1,#BATTON2 do
			BATTON2[i].Light.Enabled = true
			BATTON2[i].Transparency = 0
		end
    else
        script.Parent.Base.Idle:Stop()
		script.Parent.ON.Transparency = 1
		script.Parent.OFF.Transparency = 0
		seat.Disabled = true
		for i = 1,#BATTON do
			BATTON[i].Light.Enabled = false
			BATTON[i].Transparency = 1
		end
		for i = 1,#BATTON2 do
			BATTON2[i].Light.Enabled = false
			BATTON2[i].Transparency = 1
		end
	end
end)

Pictures and videos: (All parts inside “Parts” model have nothing in them. Only one of them is a mesh, half are unions, half are standard parts.
image

1 Like

Read this. It could help you.

Can you show which part is falling off in the explorer?

The picture above the video is that

I changed all the Values that I could and it still falls. There’s a couple that are like:

PhysicalProperties.new(_Tune.AxleDensity,0,0,0,0)

But I don’t know if I should change those too. I’ll try, and edit the message when I’m back.

Forgot to edit: still doesn’t work
Edit: Solved on my own

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.