Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED]How would I make this script work?

Asked by 10 years ago
GUI.Button1.MouseButton1Click:connect(function()
    a = a + 1
    script.Votingstatus1.Changed:connect(function()
        a = votingvalue1.Value
        print(votingvalue1.Value)
    end)
end)

I've been trying to add a to the string's Value using a GUI button.

I'm pretty sure i'm doing this 100% wrong, but I would love some help.

1 answer

Log in to vote
1
Answered by 10 years ago
local a = 0 --or 1 or 2 or etc.
GUI.Button1.MouseButton1Click:connect(function()
    Votingstatus1 = a + 1
    script.Votingstatus1.Changed:connect(function()
        a = votingvalue1.Value
        print(""..votingvalue1.Value.."")--I dunno if this is needed or not but just to be safe?
    end)
end)

I don't know exactly what you're trying to do... :\

0
this is fine thx. rabidhalofan12345 55 — 10y
Ad

Answer this question