So basically im trying to make a fishing game with a minigame but the problem is that when i click the gui it dissapears instead of dissapearing when the value is biggger than 99
heres my code:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Value.Value += 5
if script.Parent.Value.Value <= 99 then
script.Parent.Parent.Enabled = false
end
end)