So im making a snowball game and i want snowball to connect to an object after you throw it , when it touches it. Ive made a throwing script so far, (with linearvelocity) after throwing a snowball it waits for it to touch anything and then i want to connect snowball to the place it touched the part.
The problem is that .Touched event activated to early, and so the snowball welds in the air, some miliseconds before touching the part visually (ive added a video), also i noticed the same if i destroy the snowball on touch, it doesnt touch it visually and destroys before it visually touches.
ammo.Touched:Connect(function(child)
if child:IsDescendantOf(plr.Character) == false then
--ammo is the ball itself
local weld = Instance.new("WeldConstraint",ammo)
weld.Part0 = ammo
weld.Part1 = child
end
end)
no it happens not only to trees as a said same thing happens if i do :Destroy() on touch, it detects in too early it didnt even touch the ground visually but already destroys