Trying to make a script for a tool that when equipped will enable a script inside of a player, and when unequipped will disable said script. Here is the code so far.
local tool = script.Parent
local player = script.Parent.Parent
local VMS = player.ViewModelScript
tool.Equipped:Connect(function()
VMS.disabled = false
end)
tool.Unequipped:Connect(function()
VMS.disabled = true
end)
Then it works, you can just check if the script really disables, because i don’t know what “Disabling” that local script should do so i can’t know how to help.