so I want to make a tool when I click while holding the tool but it's not increasing the int value (Energy) which is in the workspace
Here's the script
local energy = game.Workspace.Energy
script.Parent.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
energy.Value = energy.Value + 1
end)
end)

1 comment
Yeah, exactly