So this is happening to all of our blasters and this has never happened before, We scripted the weapons if they Hit Part the beam would disappear and also for distance. But now they are just floating in mid air.
Could you show line numbers for the script source code
Assuming your error is happening at if HitPart.Name ~= “Block” then,
Make sure to verify that HitPart exists before checking for the Name property with
if HitPart then
-- the rest of your code
end
-- Alternatively...
if not HitPart return end
-- the rest of your code
1 Like
Everything works and all but if you shoot it in mid air it freezes and dose not destroy only if It touches.