Application Center Ranking Problem

I set the application center up and it does not rank. I know my ranking works because it worked for my rank donation plaza.

1 Like

Alright, the issue here is stated, “The role set is invalid or does not exist”

Can you send us your configuration file?

What do you mean by configuration file?

It’s the LocalScript inside of StarterGui > Main > LocalManager

Haven’t done my questions yet, just testing ranking.

local ManagerGui = game.StarterGui.ApplicationGui
local CurrentQuestion = 1
local QuestionsFrame = script.Parent.Questions_Frame
local PointStatus = game.ReplicatedStorage.PointStatus
local SendData = game.ReplicatedStorage.SendData

--EDIT ME 

local req_Points = 1
local TotalQuestions = 2
local ApplicationName = "TEST"
local PassRank = 0

local questions = {
	[1] = {
		"question!",
		"1PossibleAnswer1",
		"1PossibleAnswer2",
		"1PossibleAnswer3",
		"1PossibleAnswer4",
		1
	},
	[2] = {
		"2QuestionName",
		"2PossibleAnswer1",
		"2PossibleAnswer2",
		"2PossibleAnswer3",
		"2PossibleAnswer4",
		1
	},
}

--DON'T EDIT ME

print(ApplicationName)

script.Parent.Title.Text = ApplicationName

game.ReplicatedStorage.SendData:FireServer(req_Points, TotalQuestions, PassRank)


local function Correct()
	if CurrentQuestion <= TotalQuestions then
		QuestionsFrame.Question_Here.Text = "Nice! That was Correct!"
		game.ReplicatedStorage.PointStatus:FireServer(true)
	end
end

local function Incorrect()
	QuestionsFrame.Question_Here.Text = "Oops! That was Incorrect!"
	game.ReplicatedStorage.PointStatus:FireServer(false)
end



local function executeNextQuestion()
	local if_selected_answer = false
	if_selected_answer = false
	local current_question = questions[CurrentQuestion]
	QuestionsFrame.Question_Here.Text =  current_question[1]
	QuestionsFrame.ANSWER1.Text =  current_question[2]
	QuestionsFrame.ANSWER2.Text =  current_question[3]
	QuestionsFrame.ANSWER3.Text =  current_question[4]
	QuestionsFrame.ANSWER4.Text =  current_question[5]
	game.StarterGui.OP1:Clone().Parent = script.Parent.Questions_Frame
	game.StarterGui.OP2:Clone().Parent = script.Parent.Questions_Frame
	game.StarterGui.OP3:Clone().Parent = script.Parent.Questions_Frame
	game.StarterGui.OP4:Clone().Parent = script.Parent.Questions_Frame
	local correct_answer = current_question[6]
	local selected_answer = 0
	local function check()
		if selected_answer == correct_answer then
			print("Correct")
			Correct()
			script.Parent.Questions_Frame.OP1:Destroy()
			script.Parent.Questions_Frame.OP2:Destroy()
			script.Parent.Questions_Frame.OP3:Destroy()
			script.Parent.Questions_Frame.OP4:Destroy()
		else
			print("Incorrect")
			Incorrect()
			script.Parent.Questions_Frame.OP1:Destroy()
			script.Parent.Questions_Frame.OP2:Destroy()
			script.Parent.Questions_Frame.OP3:Destroy()
			script.Parent.Questions_Frame.OP4:Destroy()
		end
	end
	QuestionsFrame.OP1.MouseButton1Click:Connect(function()
		if if_selected_answer == false then
			if_selected_answer = true
			selected_answer = 1
			check()
			CurrentQuestion = CurrentQuestion +1
		end
	end)
	QuestionsFrame.OP2.MouseButton1Click:Connect(function()
		if if_selected_answer == false then
			if_selected_answer = true
			selected_answer = 2
			check()
			CurrentQuestion = CurrentQuestion +1
		end
	end)
	QuestionsFrame.OP3.MouseButton1Click:Connect(function()
		if if_selected_answer == false then
			if_selected_answer = true
			selected_answer = 3
			check()
			CurrentQuestion = CurrentQuestion +1
		end
	end)
	QuestionsFrame.OP4.MouseButton1Click:Connect(function()
		if if_selected_answer == false then
			if_selected_answer = true
			selected_answer = 4
			check()
			CurrentQuestion = CurrentQuestion +1
		end
	end)
	wait(3)
	if_selected_answer = false
end




game.ReplicatedStorage.NextQuestion.OnClientEvent:Connect(function()
	print("Fired")
	if CurrentQuestion <= TotalQuestions then
		executeNextQuestion()
	else
		script.Parent.Title.Text = "Checking if you passed..."
		script.Parent.Questions_Frame:Destroy()
		game.ReplicatedStorage.CheckIfPassed:FireServer(game.Players.LocalPlayer)
	end
end)


game.ReplicatedStorage.PromotionStatus.OnClientEvent:Connect(function(status)
	if status == false  then
		script.Parent.Title.Text = "You failed the application, try again later!"
	else
		script.Parent.Title.Text = "Currently promoting!"
	end
end)```

PasssRank is set to “0”, you need to watch the video so you can see what you need to set that to for it to work.

Alright, thank you for the quick support!

No worries, if it fixes the issue be sure to mark the post as soloution!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.