How to add new maps to my Sword Fighting Game

so after this
image

Yes, after this. Please before replying try it out. I understand you’re new, I was in your shoes too, but you need to try it out on your own.

i tried it out and it still gave me the same error
image
im sorry if im annoying you

ill show you the script again if you want

Which line is this? If it’s for parenting, it’s because you didn’t call the right folder.

i belive it was this line
image

Of course it’ll give you an error, ChosenMap is the map’s name, not the actual object. You need to replace ChosenMap with game.ServerStorage.Maps:FindFirstChild(ChosenMap)

it works finally, thanks alot, sorry if i was being a bit retarted.

1 Like

but what if i want to add more maps?

No no, you’re fine. You’re learning! If you want to add more maps, just add them to the folder and the game will take care of it.

oh okay, thanks! hope you see ya in the future

1 Like

god darn it, it came up with another error
image
ill probably create a new topic if no one responds

Please replace ChosenMap with game.ServerStorage.Maps:FindFirstChild(ChosenMap)

thank you alot, it works now, but there is another error that comes up and i’m worried it will effect the script in the future.
image
for some reason, it wouldn’t let me send the picture of the error so i will type it
ServerScriptService.MainScript:58: invalid argument #2 to ‘random’ (interval is empty)

sorry for late response time
btw

and also, i forgot to say that it gets stuck on intermission on the second or third round.