My friends and I are making a demolition derby game and we can't figure out this one script. We're trying to make it so if the vehicle goes over a certain speed, it crashes. Example: If your car goes 1 MPH and hits another car only going 1 MPH the other car wouldn't take any damage.
seat = script.Parent.Parent.VehicleSeat speed = seat.Velocity.magnitude
if speed >= 100 then crash = true end
if crash == true then end function onTouched(Part) Part:BreakJoints() end script.Parent.Touched:connect(onTouched)
