I’m currently making a Vehicle crash script for my Aircraft, it works if the hitbox collides when it reaches the target speed.
This is what i have tried so far but didn’t work. (Not a Local Script)
local Seat = script.Parent.Parent.DriveSeat
local Particle = script.Parent.DestroyedParticle
local Hitbox = script.Parent.Parent.Collision
Hitbox.Touched:Connect(function(hit)
if Seat.Velocity.Magnitude >= 1 and hit.Name == "Hitbox" then
Particle.Enabled = true
print("Enabled")
else
Particle.Enabled = false
print("Disabled")
end
end)