프로필

가입일: 2021년 4월 28일

소개
0 좋아요
0 개 댓글
0 베스트 답변

local colorRed = Color3.fromRGB(255, 0, 0)

local colorGreen = Color3.fromRGB(76, 255, 0)

local colorBlue = Color3.fromRGB(0, 17, 255)

local colorWhite = Color3.fromRGB(255, 255, 255)

local sum=0

local switch = game.Workspace.switch

local st1 = game.Workspace.stair1

local st2 = game.Workspace.stair2

local st3 = game.Workspace.stair3

local st4 = game.Workspace.stair4

local st5 = game.Workspace.stair5

local st6 = game.Workspace.stair6

local st7 = game.Workspace.stair7

local st8 = game.Workspace.stair8

local st9 = game.Workspace.stair9

local st10 = game.Workspace.stair10

local st11 = game.Workspace.stair11

local stairArr = {st1, st2, st3, st4, st5, st6, st7, st8, st9, st10, st11}

local function rainbowStair()

for i=1, #stairArr do

if stairArr[i].Color == colorRed then

stairArr[i].Color =colorGreen

elseif stairArr[i].Color ==colorGreen then

stairArr[i].Color = colorBlue

elseif

stairArr[i].Color == colorBlue then

stairArr[i].Color = colorWhite

else

stairArr[i].Color = colorRed

end

Wait(1)

end

end

switch.Touched:Connect(rainbowStair)

sirjunekwon

더보기