Alright, so I have a script that when a part named "Bullet" touches a block it is supposed to add a different number to the block rather than what a normal touch is supposed to do, however when "Bullet" comes in contact with the block it gives the number as any normal touch. What do I do?
function Bullet(part)
if debounce or part.Name == Bullet then return end
onTouched()
debounce = true
number1 = tonumber(script.Parent.Name)
print(number1+number3)
script.Parent.Name = (number1+number3)
wait(0.2)
print "bullet"
math()
math2()
math3()
math4()
debounce = false
end
script.Parent.Touched:connect(Bullet)
function onTouched()
if debounce == true then return end
debounce = true
number1 = tonumber(script.Parent.Name)
print(number1+number2)
script.Parent.Name = (number1+number2)
wait(0.2)
print "ahh"
Bullet(part)
math()
math2()
math3()
math4()
debounce = false
end
NOTE: The full code leaves me with no errors, and in practice it also leaves no errors.
