ROBLOX - 试图获得我想要的效果?

ROBLOX - Trying to get my desired effect?

抱歉标题含糊不清,我不知道如何解释我想做的事情。

我正在尝试从 ROBLOX 游戏中复制 "choosing"(?) 效果 shown here

除了一个问题外,我基本上得到了完全相同的东西。它每次总是停在同一部分(顶部)。在这里发帖是我目前的最后一招(roblox 上的脚本子论坛非常不活跃)

for i = 1, 3 do
    for _, ll in pairs(P:GetChildren()) do
        lastbcolor = ll.BrickColor
        ll.BrickColor = BrickColor.Yellow()
        wait(t)
        ll.BrickColor = lastbcolor
        lastpicked = ll
        print(t)
        t=t+0.2 -- to slow down
    end
end
math.randomseed(os.time())
local t = P:GetChildren()
local N = #t                  -- number of menu items
local K = 1
for R = 20 + math.random(N), 1, -1 do
  ll = t[K]
  local lastbcolor = ll.BrickColor
  ll.BrickColor = BrickColor.Yellow()
  wait( R^-.7*.7 )
  ll.BrickColor = lastbcolor
  K = K % N + 1
end
ll = t[K]
-- blink 
for R = 1, 5 do
  local lastbcolor = ll.BrickColor
  ll.BrickColor = BrickColor.Yellow()
  wait( .3 )
  ll.BrickColor = lastbcolor
  wait( .3 )
end