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

Is it possible to make a move Level up System with Tables?

I am trying to make a simulator, Which has a level up system which when you get to a certain level you get a new move. Its basically like pokemon or something else like that.

Does anybody know how to make it? I tried making it but it did not work (Mostly because I am not very educated with tables)

1 answer

Nvm, found out how to do it You can use this if you want

--Cut out most of the script cause reasons If you want to use get a variable for the player--

local ClassMoveTable = {

	[1] = {
	[5] = "Fireball"

	}






}


player.Stats.Level.Changed:Connect(function()
if ClassMoveTable[player.Stats.Class.Value] then
if ClassMoveTable[player.Stats.Class.Value][player.Stats.Level.Value] then
--Do whatever you want after this--
end
end
end)


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