How to get one Mission from a Folder

	local function GetMissions()
		for i, v in pairs(game.ServerStorage.Mission:GetChildren()) do
			if not v.Value then
				print("Player got this   ")
				print(v)
				return v
			end
		end
	end

This scripts get boolvalues inside a folder that are false. It prints all the boolvalues inside the folder that are false. How would I get one of those missions.

I tried that it didn’t work. Is there any other method to doing this?

What do you mean it didnt work… it works fine

Missions.rbxm (1.3 KB)

Use a random number for example 1-5 and if 1 is picked this mission will happen or if it’s 2 this will happen you get what I mean?

I have no idea what you are talking about

So there’s a thing called math.random() I think that’s I’m on my phone but that exit try this

Local randomNumber= math.random(1,5)
Print(randomNumber)

What about math.random(), if you’d read the post entirely you’d see the proposed solution includes math.random so… what are you on about

I just saw the post so yeah sorry if that was weird :smiley: