PLAYERS[id].Class = "Rogue"
--When I press the first button in my menu, PLAYERS[id].SROGUE = PLAYERS[id].SROGUE + 1
1
2
3
4
5
6
7
2
3
4
5
6
7
--cut 		local playerclass = ".S"..string.upper(PLAYERS[id].Class) 		if (button == 1) and PLAYERS[id].SkillPt > 0 then 			PLAYERS[id] .. playerclass ..[button] = PLAYERS[id] .. playerclass ..[button] + 1 			print(PLAYERS[id] .. playerclass ..[button]) 		end	 --cut
instead of this:
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
if (button == 1) and PLAYERS[id].SkillPt > 0 then 			if PLAYERS[id].Class == "Rogue" then 				PLAYERS[id].SROGUE[button] = PLAYERS[id].SROGUE[button] + 1 				print(PLAYERS[id].SROGUE[button]) 			elseif PLAYERS[id].Class = "Warrior" then 				PLAYERS[id].SWARRIOR[button] = PLAYERS[id].SWARRIOR[button] + 1 				print(PLAYERS[id].SWARRIOR[button]) 			elseif PLAYERS[id].Class = "Mage" then 				PLAYERS[id].SMAGE[button] = PLAYERS[id].SMAGE[button] + 1 				print(PLAYERS[id].SMAGE[button]) 			end	 		end