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

My tool hold animation disable does not work?

I am using a method were i set RequiresHandle to false and change the name from handle to hndl, then added this simple script that did not work for some reason.

script.Parent.Activated:Connect(function()
	wait(0.001)
	script.Parent.Handle.Name = "Hndl"
end)

script.Parent.Deactivated:Connect(function()
	script.Parent.Handle.Name = "Handle"
end)

2 comments

0

i am using a regular script. I just said that just in case that is the problem.

0

Please mark the answer as accepted if it works

1 answer

✓ Accepted answer

Its not working because the Handle didn't exists when the Deactivated function, as its name was "Hndl"

script.Parent.Activated:Connect(function()
    wait(0.001)
    script.Parent.Handle.Name = "Hndl"
end)

script.Parent.Deactivated:Connect(function()
    script.Parent.Hndl.Name = "Handle" --The name of the handle here is 'Hndl', not "Handle"
end)

2 comments

0

Oof. I think i just hit my head. Thanks!

0

Please mark the answer as accepted if it works

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