티스토리 뷰

[c0ffee]Python/Roblox

배열 사용

c0ffee 2021. 9. 16. 15:35
728x90

배열 사용

 

--테스트 배열에 값 입력

local test = {"Part1", "Part2", "Part3", "Part4", "Part5", "Part6"}

--랜덤1 변수에 test배열의 랜덤 값 삽입

local random1 = test[math.random(1,6)]

--출력

print(random1)

 

 

728x90

'[c0ffee]Python > Roblox' 카테고리의 다른 글

플레이어 달리기  (0) 2021.08.31
댓글