Hello, I am experimenting with a script that will disable a weld constraint whenever it hits another part but, whenever that other part is hit, the part which is supposed to get its weld constraint disabled disappears from the game entirety.
can we see the script?
–characters–
script.Parent.Touched:Connect(function(hit)
if hit.Name == "FrontWingGone" then
print("hit")
script.Parent.WeldConstraint:Destroy()
wait(0.12)
script.Parent.Parent.Parent.VehicleSeat.MaxSpeed = script.Parent.Parent.Parent.VehicleSeat.MaxSpeed - 10
script.Parent.Parent.Parent.VehicleSeat.Torque = 14
script.Parent.Damaged.Value = true
wait(10) -- testing
script.Parent.WeldConstraint.Enabled = true -- testing
end
end
)
is it not falling off the map because cancollide is false?
oh that was the problem all along, whoops
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.