When a part touched another part (lava) all welds that are attached to the part get destroyed
example - an unanchored car hits a rock and the part that touched the rock falls of the car ( like in those old 2010 games )
the car is welded together so it doesn't fall apart.
v - the script ( lava part ) - v
script.Parent.Touched:Connect(function(hit) local all = hit:FindFirstChild("Weld") all:Destroy() end)
I could just make the part disappear with a script, but that's lame.
script.Parent.Touched:Connect(function(hit) local all = hit:FindFirstChildOfClass("Weld") or hit.Parent:FindFirstChildOfClass("Weld") repeat all = hit:FindFirstChildOfClass("Weld") or hit.Parent:FindFirstChildOfClass("Weld") if all then all:Destroy() end until all == nil end)
I haven't tested it but maybe it would work
script.Parent.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid ~= nil then return else local all = hit:FindFirstChildOfClass("Weld") or hit.Parent:FindFirstChildOfClass("Weld") repeat all = hit:FindFirstChildOfClass("Weld") or hit.Parent:FindFirstChildOfClass("Weld") if all then all:Destroy() end until all == nil end end)