with much sacrifice I managed to get up here on my wall script that break with a shot but now I need help I give a shot only and it disassembles want to leave her toughest how can I do this ? function onHit(part)
01
function onHit(part)
02
vX = math.abs(part.Velocity.x - script.Parent.Velocity.x)
03
vY = math.abs(part.Velocity.y - script.Parent.Velocity.y)
04
vZ = math.abs(part.Velocity.z - script.Parent.Velocity.z)
05
totalVelocity = vX + vY + vZ
06
print(totalVelocity)
07
if totalVelocity >= 0.1 then
08
script.Parent.CanCollide = false
09
script.Parent.Sound:play()
10
script.Parent:remove()
11
end
12
end
13
14
script.Parent.Touched:connect(onHit)
