FilteringEnabled
is disabled, Yet this script does not work?
It prints waiting
and waited
but nothing when the textbutton
is clicked?
print("waiting") -- prints wait(5) print("waited") -- prints local CurrentWager = script.Parent.CurrentWager local MinBet = script.Parent.MinBet local Text = a.Wager.SurfaceGui.TextLabel Text.Text = "Bet: ".. MinBet.Value -- successfully changes the text --when the textbutton mentioned below is clicked, nothing happens, no output, notta script.Parent.Increase.SurfaceGui.TextButton.MouseButton1Down:connect(function () print("function activated") print("start value".. CurrentWager.Value) CurrentWager.Value = CurrentWager.Value + 1 print("end value".. CurrentWager.Value) end)
Well, you forgot to repeat the code after end)
, you always have to repeat the code in order for it to work, example.
script.Parent.Increase.SurfaceGui.TextButton.MouseButton1Down:connect(onClicked)