Im trying to get my tool to Unequip when they try to equip it
local tool = script.Parent
local player = game:GetService("Players").LocalPlayer
local humanoid = player.Character:FindFirstChild("Humanoid")
local TurnOn = game.ReplicatedStorage.StorageValues.LaserGunEnabled
tool.Equipped:connect(function()
if TurnOn.Value == false then -- THE VALUE IS FALSE WHEN GAME STARTED
humanoid:UnequipTools() -- unequip the thing.
end
end)
I used this correctly right?

4 comments
Any errors in output?
Yep here: "Something unexpectedly tried to set the parent of LaserGun to Backpack while trying to set the parent of LaserGun. Current parent is Red_Musician."
I didnt understand this
Try putting a wait before the UnequipTools().