--[[
For some reason when a round starts, they send you:
- Current Round #
- Round Type (Vote, Song)
- Options in the form of IDs (37, 48, 63, 92)
- SongNum in the form of an ID. [Ex. 48]
+ Data for future rounds (upwards of 20 rounds)
+ SongNum is always the correct song choice
--]]
Connect
function
for
in
ipairs
do
end
end
-->> Listen for when a new round starts
Connect
function
if
not
or
not
then
return
end
local
local
if
not
then
warn
'⚠️ No data found for round'
return
end
-->> Determine the correct option and button index
if
'Song'
then
local
-->> They put this in the UI's localscript for some reason
local
table
find
if
then
--[[
The correctIndex is a number (1-4) which represents your four buttons.
I just get that number by using table.find with the same args they used in
the localscript. "LocalPlayer.PlayerGui.QuestionGUI.GameClient"
"if table.find(v154.Options, v154.ArtistNum or v154.SongNum) == u47 then"
--]]
-->> Since there's no event or anything to submit your selection I just fake a key press.
task
wait
PressKey
else
warn
'⚠️ Could not find SongNum in options for this round.'
end
elseif
'Vote'
then
-->> Voting rounds don't have a correct answer but voting
-->> will always give you some extra height for some reason