Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make a tool's handle CanCollide true?

Hello. I just noticed that a tool's handle ALWAYS gets CanCollide false. How can i Change that? Just Setting

tool.Handle.CanCollide = true

doesn't work.

3 comments

0

Why don't you change it in the model itself. Why in script?

0

When I change it during not playing ROBLOX just sets it to cancollide false

0

K. Idk then

1 answer

✓ Accepted answer

u can do something like this:

local tool = script.Parent -- the tool

tool.Equipped:Connect(function()
	wait(.1) -- apparently u need to have a considerable delay(u cant just have a "wait()".)
	
	tool.Handle.CanCollide = true
end)

it will make the handle collideable when the tool is equipped. However, i found out if i made the tool collideable the instance it is equipped the handle will still be uncollideable after i equipped it. i tried adding a delay(like "wait()") before the tool was activated and it still yielded same results so i just added a longer delay and it worked(under studio conditions). that would be the only foreseeable drawback of this method.

This discussion is preserved as it was. New answers, comments, and votes are closed.