
Blinking bridge
Models · by Brixborg
Five tiles that take turns to vanish (each goes pale first, as a warning). Time your run. Has a script inside.
Use it in your games: in the studio, open View > Archive, go to the Models shelf and pick "Blinking bridge".
The script
-- Each tile of the bridge takes turns to vanish. A tile goes pale for a
-- moment first, as a warning.
local bridge = script.Parent
local SOLID_FOR = 2.4 -- seconds a tile can be stood on
local WARNING_FOR = 0.7 -- seconds it is pale before it goes
local GONE_FOR = 1.3 -- seconds it is missing
local function blink(tile, delayAtStart)
wait(delayAtStart)
while true do
tile.Transparency = 0
tile.CanCollide = true
wait(SOLID_FOR)
tile.Transparency = 0.6
wait(WARNING_FOR)
tile.Transparency = 1
tile.CanCollide = false
wait(GONE_FOR)
end
end
-- Start each tile a little after the one before, so they ripple.
for number = 1, 5 do
local tile = bridge:FindFirstChild("Tile" .. number)
spawn(function() blink(tile, number * 0.8) end)
end