Throwable item bug

Hi, I’m trying to make a tool that would hurt other players when thrown but I’ve encountered a bug.

I have a server script in the tool that looks like this:
image
and when I hold tool out it hurts other players like normal but when I throw the cloned tool it doesn’t make the player take any damage. Does anyone know any fixes that would work?

I don’t think that .Touched applies to a dropped weapon by default.

debug simply by printing hit in the first place, to make sure it works

Oh my mistake I didn’t read the post fully, you have to connect .Touched to a cloned tool, connections don’t get cloned

what do you mean exactly? I don’t quite understand.

You said you throw cloned tool.

For example, if you had a tool weapon, you connect .Activated and make it shoot, works, if you clone tool and try to shoot with the clone, it won’t work, cause the signals dont get cloned.

local toolClone = gun:Clone()

toolClone.Activated:Connect(function()
     --make sure the clone also works (frameworks come in handy in situations like guns
end)  
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.