Skip to content

Instantly share code, notes, and snippets.

@drickmortey
Created July 24, 2026 10:50
Show Gist options
  • Select an option

  • Save drickmortey/bba954d85bad0805ddabdfdf2058188d to your computer and use it in GitHub Desktop.

Select an option

Save drickmortey/bba954d85bad0805ddabdfdf2058188d to your computer and use it in GitHub Desktop.
local function playResults()
-- show + slide results bar in
resultsBar.Visible = true
resultsBar.Position = resultsBarStart
playArrow(arrow1, arrowDelay1)
playArrow(arrow2, arrowDelay2)
playArrow(arrow3, arrowDelay3)
task.wait(0.01)
local rb = tween(resultsBar, {Position = resultsBarEnd}, resultsBarTweenTime)
rb.Completed:Connect(function()
-- Time tag + bar
local timeTween = playTag(timeTag, timeTagEndPos)
task.delay(math.max(0, tagTweenTime - tagBarOverlap), function()
playBar(timeBar, timeBarStartPos, timeBarEndPos)
end)
timeTween.Completed:Connect(function()
-- Rings
task.delay(timeToRingsDelay, function()
local ringsTween = playTag(ringsTag, ringsTagEndPos)
task.delay(math.max(0, tagTweenTime - tagBarOverlap), function()
playBar(ringsBar, ringsBarStartPos, ringsBarEndPos)
end)
ringsTween.Completed:Connect(function()
-- Speed
task.delay(ringsToSpeedDelay, function()
local speedTween = playTag(speedTag, speedTagEndPos)
task.delay(math.max(0, tagTweenTime - tagBarOverlap), function()
playBar(speedBar, speedBarStartPos, speedBarEndPos)
end)
speedTween.Completed:Connect(function()
-- Enemy
task.delay(speedToEnemyDelay, function()
local enemyTween = playTag(enemyTag, enemyTagEndPos)
task.delay(math.max(0, tagTweenTime - tagBarOverlap), function()
playBar(enemyBar, enemyBarStartPos, enemyBarEndPos)
end)
-- play slide sequence SFX when rings starts
playSlideSequence()
enemyTween.Completed:Connect(function()
-- Tricks
task.delay(enemyToTricksDelay, function()
local tricksTween = playTag(tricksTag, tricksTagEndPos)
task.delay(math.max(0, tagTweenTime - tagBarOverlap), function()
playBar(tricksBar, tricksBarStartPos, tricksBarEndPos)
end)
tricksTween.Completed:Connect(function()
-- Total
task.delay(tricksToTotalDelay, function()
local totalTween = playTag(totalTag, totalTagEndPos)
totalTween.Completed:Connect(function()
task.delay(totalBarDelay, function()
local barTween = playBar(totalBar, totalBarStartPos, totalBarEndPos)
-- play total sfx (editable delay)
if sfxTotal then
task.delay(totalSfxDelay, function()
playSfx(sfxTotal)
end)
end
if barTween then
-- schedule New Record effects slightly BEFORE total bar finishes
local scheduleDelay = math.max(0, barSlideTime - newRecordLead)
task.delay(scheduleDelay, function()
playNewRecordEffect(newRecordTime, newRecordTimeStart, newRecordTimeGoal)
playNewRecordEffect(newRecordTotal, newRecordTotalStart, newRecordTotalGoal)
end)
barTween.Completed:Connect(function()
-- results text glow (optional) after the little arrow sequence
-- show rank text a bit later (editable)
task.delay(1, function()
tweens.playRankText()
tweens.B()
end)
end)
end
end)
end)
end)
end)
end)
end)
end)
end)
end)
end)
end)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment