Hi! For most people, this should be easy. But I can't figure it out. I have been trying to get a random value from a table, then I want it to print. It says, attempt to call local 'SelectedGamemode' (a number value). Any help?
--Start
local G1 = "Normal"
local G2 = "FFA"
local G3 = "2 People in!"
local Gamemodes = {
G1,
G2,
G3,
}
local SelectedGamemode = math.random(1, #Gamemodes)
print('The selected Gamemode is... 'SelectedGamemode"!")
Nope. So then I try this:
--Start
local G1 = "Normal"
local G2 = "FFA"
local G3 = "2 People in!"
local Gamemodes = {
G1,
G2,
G3,
}
local SelectedGamemode = math.random(#Gamemodes) --Change here
print('The selected Gamemode is... 'SelectedGamemode"!")
Help is greatly appreciated!

3 comments
you didn't include line 32 in there :p
theking, It's probably because he did cut his script, since he doesn't need to paste it fully here. so technically it can be still in line 32.
No, Sorry theking and Isaque, you can just stick to the edit I made. Thanks :)