How can i make a script that enables only when the tool is cloned to the backpack?

  1. What do you want to achieve? sword shop

  2. What is the issue? when i buy the sword the animations break, so im trying to solve it by disabling the script and only activate it when the sword goes to the backpack, this because the sword animations only work when i play the game with the sword already in my starter pack, i dont understand scripting at all and i rlly need help :confused:

-- This is an example Lua code block

Right after cloning and placing the tool in the backpack, you could do:

local yourScript = workspace.Script
yourScript.Enabled = true

(Make sure the script is disabled to begin with)

PS: Just noticed this post is a year old :skull: