Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[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 answer

✓ Accepted answer
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... :\

1 comment

0

this is fine thx.

This discussion is preserved as it was. New answers, comments, and votes are closed.