Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Need A Loop Script .. Any ideas?

Asked by 6 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Hello,

I am looking for a script that I can copy and paste over and over again to create a question bank

So I want a script like that says pick 1 to 100 (There Will Be 100 questions and each one will be numbered) And it says that question in a Message. Then I want it to Make a certain part so that you can fall through it. (TRUE OR FALSE GAME)

So it wud be like this is english

Pick a number 1 to 100

Find question associated with that number

m = "Question here"

Game.workspace.parthere.cancollide = false

Then it would pick another number and be on a loop

0
Elaborate please and I may be able to help. Kozero 120 — 6y

2 answers

Log in to vote
0
Answered by
1waffle1 2873 Trusted Badge of Merit Moderation Voter Community Moderator
6 years ago
questions={
    {
        "What color is blue?", -- question
        "Blue" -- answer
    },
    {
        "What is (e^(2ix)-1)/(2ie^(ix))?",
        "sin(x)"
    }
}

local Q,A=unpack(questions[math.random(1,#questions)])

Format questions and answers like that to keep the numerical indices. Q is the question, A is the answer. A question can have only one answer.

Ad
Log in to vote
0
Answered by
Qxest 25
6 years ago

Sorry, but we do not take requests. Please check our community guidelines.

Answer this question