Hello,
So I am trying to make an application center, but I’m having some problems.
Here is my configuration module script:
return {
CenterName = 'Bakeville';
CenterVersion = 'V0.1 BETA';
Questions = {
['1'] = {
Question = 'Which position are you applying for?',
Type = 'Answer'
},
['2'] = {
'Why do you want to work for Bakeville?',
Type = 'Answer'
},
['3'] = {
'How will Bakeville benefit from you?',
Type = 'Answer'
},
['4'] = {
'What are some of your positive traits that will help you at Bakeville?',
Type = 'Answer'
},
['5'] = {
'What are some of your negative traits?',
Type = 'Answer'
},
['6'] = {
'Which of these is correct? ',
Type = 'Multiple_Choice',
Choices = {
['1'] = 'hi i would like a bloxy cola a lemon juice a sandwich and a cake',
['2'] = 'Hi, I would like a bloxy cola, a lemon juice a sandwich and a cake',
['3'] = 'Hi, I would like a Bloxy Cola, a Lemon Juice, a sandwich and a cake.',
['4'] = 'Yo I would like a bloxy cola, lemon juice, sandwich and cake'
},
}
}
}
Here is part of my LocalScript:
local configuration = require(game:GetService('ReplicatedStorage'):WaitForChild('Configuration'))
menu.Start.MouseButton1Click:Connect(function()
if debounce then
return
end
debounce = true
for _, ui in pairs(menu:GetChildren()) do
spawn(function()
if ui.Name ~= 'Version' then
tweenService:Create(ui,TweenInfo.new(1),{TextTransparency = 1}):Play()
tweenService:Create(ui,TweenInfo.new(1),{BackgroundTransparency = 1}):Play()
end
end)
end
wait(1.2)
questionsF.Visible = true
local questions = configuration.Questions
print(#questions)
if #questions < 1 then
error('You must have at least 1 question!')
end
end)
When I print(#Questions), it prints 0.
Why does this happen? I set up 6 questions!