스크립트로 블록을 무한히 생성해봅시다!
하늘에서 다양한 블록이 떨어집니다.
4줄이면 블록을 만들 수 있어요.
print("Create Blocks")
local function create_ball()
ball = Instance.new("Part",workspace)
ball.Shape = "Ball"
ball.Position = Vector3.new(math.random(-100,100), 100, math.random(-100,100))
ball.BrickColor = BrickColor.Random()
end
local function create_block()
ball = Instance.new("Part",workspace)
ball.Position = Vector3.new(math.random(-100,100), 100, math.random(-100,100))
ball.BrickColor = BrickColor.Random()
end
while (true) do
create_ball()
create_block()
wait(0.5)
end
'Roblox Script' 카테고리의 다른 글
#7 : Remote Event로 클라이언트에서 서버 호출하기 (0) | 2020.08.02 |
---|---|
#6 - 효과음 넣기 (Sound effect) (0) | 2020.08.02 |
#4 : 블록 만지면 점수 올리기 (0) | 2020.08.02 |
#2 : 블록 복사하기 - 하늘에서 블록이 떨어지기 (0) | 2020.08.02 |
#1 - 점수판 만들기 (0) | 2020.02.02 |