im using a tutorial online and it keeps saying "NextInterger is not a valid member of Random" Any tips on how to help with that?

this is the module script

local module = {}

local status = game.ReplicatedStorage:WaitForChild("Status")

function module.Intermission(length) for i = length,0,-1 do status.Value = "Next round starts in "..i.." seconds" wait(1) end end

function module.SelectChapter() local rand = Random.new() local chapters = game.ReplicatedStorage.Chapters:GetChildren() --table for maps local chosenChapter = chapters [rand:NextInterger(1,#chapters)]

return chosenChapter

end

return module

2 comments

0

redo your question and put it in a proper code block. this is hard to read.

0

BTW, you mispelled "NextInteger" Just fix the spelling and it'll work.