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)
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