I'm trying to make a script where if a car is going over 70 AND it hits a part (yes, it destroys all the models children) it will BreakJoints(). Except that doesn't happen. It worked fine without the velocity part. Anyone help?
function onTouched(hi)
local Speed = 70
if script.Parent.Parent.Parent.VehicleSeat.Velocity.Magnitude >= Speed then
script.Parent:BreakJoints()
script.Parent.Parent:BreakJoints()
end end
connection = script.Parent.Touched:connect(onTouched)

2 comments
Try using lowercase for magnitude like: Velocity.magnitude. I'm not 100% sure, maybe there has been added Magnitude, but case matters.
nothing happens, it's not that but thanks