Rotating parts

 avatar
unknown
lua
5 months ago
447 B
34
Indexable
local block = script.Parent

while true do -- Nieskończona pętla
    block.BrickColor = BrickColor.Random()
    for i = 1,20 do
        block.Orientation = block.Orientation + Vector3.new(-4, 0, 0)
        wait(0.1) -- późnienie wykonania o 0.1 sekundy
    end
    wait(2)
    for i = 1,20 do
        block.Orientation = block.Orientation + Vector3.new(4, 0, 0)
        wait(0.1) -- Opóźnienie wykonania o 0.1 sekundy
    end
    wait(2)
end
Editor is loading...
Leave a Comment