Hello!
I am making a game where you shoot a part at enemies, and when the part named "Ray" touches an enemy it should destroy it, but it does not work! (canTouch = true) Here is my Touch Script:
local HRP = script.Parent.HumanoidRootPart
HRP.Touched:Connect(function(hit)
if hit.Name == "Ray" then
script.Parent:Destroy()
end
end)
Thank you for helping me!
- KoalaKo_XD

1 comment
Where is this script running?