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

How do I work my +1 script?

So I am making a little surface gui with 2 names on it and when somebody clicks a name it adds 1 to the value and shows up on a different gui. My script isnt working:

script.Parent.MouseButton1Click:connect(function()
	game.Workspace.Screen.SurfaceGui.Frame.FirstNominee2.Value.Value = +1
	script.Parent.Parent.Visible = false
	wait(8)
	script.Parent.Parent.Visible = true
end)

1 answer

✓ Accepted answer

You cannot have the value set to +1, you will have to repeat the value and add 1 onto it:

game.Workspace.Screen.SurfaceGui.Frame.FirstNominee2.Value.Value = game.Workspace.Screen.SurfaceGui.Frame.FirstNominee2.Value.Value +1

2 comments

0

That didn't work

0

I can only guess that you've misspelled something, or typed it in wrong.

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