How would i make a explosive that explodes of velocity

basically trying to make a explosive part and if it hits a wall / floor fast enough it explodes

wondering how i could do this
(acidentally deleted this oops)

1 Like

still need help figuring this out

my vehicle crash detection formula:

Part.Touched:Connect(function(hit)
			local Diff = (Part.AssemblyLinearVelocity + -hit.AssemblyLinearVelocity).Magnitude
			if Diff > 20 then
-- your code here
end
end)