#Why can i not press the button twice?

11 messages · Page 1 of 1 (latest)

spice rover
#

heres my code:

Part = script.Parent
clickdetector = script.Parent.ClickDetector
_G.Multiplier = 1
clickdetector.MouseClick:Connect(function(Player)
    local Leaderstats = Player.leaderstats
    local magic = Leaderstats.Magic
    local Money = Leaderstats.Money
    if Money.Value == 10 then
        _G.Multiplier = _G.Multiplier + 1
        Money.Value = Money.Value - 10
    end
    
end)```
tribal adder
#

because you check if the money is 10
and then you subtract 10
and then it isnt 10 anymore
then youre to poor to run it again

spice rover
#

yeah but i got it to 10 again

worthy marlinBOT
#

studio** You are now Level 5! **studio

spice rover
#

then it just doesnt work

#

i can send my other scripts

tribal adder
#

why does it need to be exactly 10?

spice rover
#

OHHH

tribal adder
#

why not Money.Value >= 10

spice rover
#

OmG IM SO DUMB

#

TYSM <3