.Touched is not detecting the collision. I am trying to detect if a bullet/ball would collide with a model, which both of them are moving. Any solution? I don't really know how to do raycasting or Region3, if there are any examples, please let me know. Thanks! P.S. The bullet/ball is a model, so I am using SetPrimaryPartCFrame or GetPrimaryPartCFrame.
for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA("Part") then
v.Touched:Connect(function(hit)
if hit.Name == "Waterball" then
script.Parent.Damage.Value = script.Parent.Damage.Value - 100
script.Parent.Head.BillboardGui.TextLabel.Text = "Damage Remaining: " .. tostring(script.Parent.Damage.Value)
end
end)
end
end

2 comments
what's the error, what's not working?
.Touched is not detecting the collision of the ball/bullet.