0

[SOLVED]How would I make this script work?

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
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 — 7y