Hi iβm stuck at my promotion
Ok. Please next time give your post a bit more details.
First of all go to heroku, go to the logs page, run the game so you get the error again. and then copy and paste what you can see from the heroku logs.
I found the solution that it is kicking me now, but now it isnβt ranking me, lol
That made no sense, can you explain?
Well, I made a mistake in the APIkey, and now that is fixed, but when iβm kicked and there is standing "You were Promoted! You should have been ranked in the group, it isnβt ranking me now to the rank I need to be.
Can you do what I said in post 1?
2021-10-16T20:20:10.473997+00:00 heroku[router]: at=info method=GET path="/group/rank/?user_name=BloodyClown070&key=secret&groupid=6841479&role_number=3" host=united-kingdom-centre.herokuapp.com request_id=d89717d4-4907-4e94-bb60-d0f71bf985c8 fwd="128.116.41.186" dyno=web.1 connect=0ms service=2ms status=200 bytes=159 protocol=https
2021-10-16T20:20:10.474845+00:00 app[web.1]: INFO: 128.116.41.186:0 - "GET /group/rank/?user_name=BloodyClown070&key=secret&groupid=6841479&role_number=3 HTTP/1.1" 200 OK
2021-10-16T20:24:46.209855+00:00 heroku[router]: at=info method=GET path="/group/rank/?user_name=BloodyClown070&key=secret&groupid=6841479&role_number=3" host=united-kingdom-centre.herokuapp.com request_id=764a2487-216c-40ac-ba76-a63fa98b4afd fwd="128.116.73.62" dyno=web.1 connect=0ms service=2ms status=200 bytes=159 protocol=https
2021-10-16T20:24:46.211391+00:00 app[web.1]: INFO: 128.116.73.62:0 - "GET /group/rank/?user_name=BloodyClown070&key=secret&groupid=6841479&role_number=3 HTTP/1.1" 200 OK
You just leaked your api keys, edit them out.
Can you send me a screenshot of the entire thing?
It said its working. Are you sure you took this screenshot after running the app while having the logs open?
Yes, I did so ye idk why it isnβt working
Send me your game and group so I can try it for myself.
Can you send me the configuration file?
What is that lol and where can I find
In studio open the file where you put your rank to be promoted to and send me the files
local player = game.Players.LocalPlayer
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 = 4
local TotalQuestions = 4
local ApplicationName = "Title"
local PassRank = 3
local questions = {
[1] = {
"Who is our current Founder?",
"PersesTheTitan",
"SinghXValor",
"Jim",
"Expective_NL",
1
},
[2] = {
"Who is our Group Management?",
"Tiger",
"Expective_NL",
"Bradolink",
"k1dnn",
2
},
[3] = {
"Which side of the road we drive?",
"Anywhere",
"Right",
"Middle",
"Left",
4
},
[4] = {
"Who is our current Monarch?",
"PersesTheTitan",
"TigerFX",
"BradPlaysFTW",
"KyleSWoodwin",
3
},
}
--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)
Whatβs the rank ID of the minimum role I the group?
That is 255 like other groups