So Im building and when I use my touch function in only works once then it stops. Is there something Im doing wrong?
My sword script for touch and damage:
script.Parent.DamagePart.Touched:Connect(function(p)
if script.Parent.CanDamage.Value == true then
script.Parent.CanDamage.Value = false
p.Parent.Humanoid:TakeDamage(20)
end
end)

2 comments
THANK YOU SO MUCH!!!!
No problem!