How would I make a random map choser?

do you have the

local module = {} -- at the beginning 
-- and
return module -- at the end.

Also make sure it is not capitalized.

script
it red underlines the first function it isn’t shown in this picture but it is.

You’re returning the module before defining the SelectMap method; the return statement escapes the current scope and doesn’t allow any code after it to execute.

Oh so I should put the code in between?

2 Likes

@WildRagers I think you should watch this video.
Here @Alvin_Blox tells about module scripts in detail.
Or you could see the API reference of Module Scripts

Module scrips are very useful and makes your game easy to make.
It maybe hard to study module scripts at the beginning but it will be easier after time passes.

I didn’t they just gave it to me?

Not saying I don’t apreciate it.

Anyway I changed it. (30 chars)

That’s asking for scripts. You asked how to make it and somebody gave it to you that’s basically against the rules and classified as asking for someone to write a entire script.

No read my description of this post. Also let’s not break another rule and bring this to DM’s.

1 Like