Roblox says Equip is not a valid member of tool, but it clearly is. This is the script that changes the BoolValue of Equipt:
local tool = script.Parent local function onEquip() tool.Equip = true end local function onUnequip() tool.Equip = false end local function onActivate() end local function onDeactivate() end tool.Equipped:Connect(onEquip) tool.Unequipped:Connect(onUnequip) tool.Activated:Connect(onActivate) tool.Deactivated:Connect(onDeactivate)
Here's Equip being a valid member of Tool: I would really appreciate if someone could help me with this.
To change the value of a BoolValue
, or any other value object, you need to change the Value property. If you think about it, directly overriding the object itself would not work, and should not be expected to work.
To fix your script, simply append .Value
to the object when changing or accessing its value:
tool.Equip.Value = true