Code issues - tool part i have created does not collide

Hello, I would like to know why the part tool that I have created does not collide with the ball?

Tool part that i have created:

I need to make both of them collide with each other, how i do that?

What I want from this is to be able to make that if somone throw the ball at me it collides with the part that I have created

Part i have created:
image

How i do that?


The ball and the tool part that I have created are both tools

I believe this is simply how tool handles behave.

Here’s a solution:

  1. Duplicate the Handle (You can do this easily with Ctrl+D).

  2. Rename the new part to something other than “Handle” (Something like “MainPart”).

  3. Don’t move the new Part! just weld it to the Handle with a WeldConstraint.

  4. Make sure the new part’s CanCollide property is set to true!

  5. So you don’t get that annoying overlap effect, turn one of the part’s Transparency properties to 1.

At the end of this process, you should have a part that serves as the tool handle and a part that can collide with other objects.

You may have to do this with the ball, too.

4 Likes

Wow thanks you! do you know how do i use the WeldConstraint?

There are two important properties called Part0 and Part1. Click the empty box for Part0 in the WeldConstraint’s properties and select MainPart in the explorer. Do the same for Part1, but click Handle instead.

1 Like

Works! Thanks a lot!! two days looking for this solution! :smiley: :smiley: :smiley:

1 Like