Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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.

0
Why don't you change it in the model itself. Why in script? Tweakified 117 — 5y
0
When I change it during not playing ROBLOX just sets it to cancollide false Sonnenroboter 336 — 5y
0
K. Idk then Tweakified 117 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

Ad

Answer this question