# 로블록스 게임 만들기

[https://chatgpt.com/](https://chatgpt.com/) 

```
로블록스 게임을 만들꺼야. 
내 설명을 듣고 게임을 만들 수 있게 도와줘.

###설명
- 점프맵
- 난이도가 점점 올라감
- 타워식으로 위로 올라감

```

[https://www.perplexity.ai/](https://www.perplexity.ai/) 

[https://www.perplexity.ai/](https://www.perplexity.ai/)

랜덤 블록 생성 코드

ServerScriptService 안에 script 파일 생성하고 복사 -  붙여넣기 하기

![Image](https://upload.cafenono.com/image/slashpageHome/20240628/162440_pgxwSydj4friVCocrT?q=75&s=1280x180&t=outside&f=webp)

```
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")

local COOLDOWN_TIME = 2 -- 파트 생성 간 대기 시간 (초)
local MAX_PARTS = 10 -- 최대 생성 가능한 파트 수
local HEIGHT_INCREASE = 2 -- 각 파트마다 올라가는 높이

local function createPart(position)
	local part = Instance.new("Part")
	part.Size = Vector3.new(4, 1, 4)
	part.Position = position
	part.Anchored = true
	part.Parent = Workspace
	return part
end

local function getRandomOffset()
	local angle = math.random() * 2 * math.pi
	return Vector3.new(math.cos(angle) * 10, HEIGHT_INCREASE, math.sin(angle) * 10)
end

local function onCharacterAdded(character)
	local humanoid = character:WaitForChild("Humanoid")
	local rootPart = character:WaitForChild("HumanoidRootPart")
	local lastPart = nil
	local partCount = 0
	local lastPartCreationTime = 0

	local function createNewPart()
		if os.time() - lastPartCreationTime < COOLDOWN_TIME then
			return -- 쿨다운 시간이 지나지 않았으면 생성하지 않음
		end

		if partCount >= MAX_PARTS then
			if lastPart and lastPart.Parent then
				lastPart:Destroy() -- 최대 개수 도달 시 가장 오래된 파트 제거
				partCount = partCount - 1
			end
		end

		local newPosition = lastPart and (lastPart.Position + getRandomOffset()) or (rootPart.Position - Vector3.new(0, 3, 0))
		lastPart = createPart(newPosition)
		partCount = partCount + 1
		lastPartCreationTime = os.time()

		lastPart.Touched:Connect(function(hit)
			if hit.Parent == character then
				createNewPart()
			end
		end)
	end

	humanoid.StateChanged:Connect(function(_, newState)
		if newState == Enum.HumanoidStateType.Jumping then
			wait(0.5) -- 점프 후 잠시 대기
			createNewPart()
		end
	end)
end

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(onCharacterAdded)
end)

for _, player in Players:GetPlayers() do
	if player.Character then
		onCharacterAdded(player.Character)
	end
end
```

[https://slashpage.com/conanssam/7vgjr4m151e8zmdwpy86](https://slashpage.com/conanssam/7vgjr4m151e8zmdwpy86)

---

# 투표

[https://slashpage.com/conanssam/7916x82rqx849m4kpyg3](https://slashpage.com/conanssam/7916x82rqx849m4kpyg3)

[탈모는 못깨는 타워](https://www.roblox.com/games/18241521147/unnamed)

[탈모는 못깨는 타워](https://www.roblox.com/games/18241521147/unnamed)

못깰수 없는 점프맵

[탈모는 못깨는 타워](https://www.roblox.com/games/18241521147/unnamed)

불가능한 타워

[불가능한타워](https://www.roblox.com/games/18340738261/unnamed)

샤랄라 멋진 무지개 타워

[샤랄라 예쁜 무지개 타워(아주 재미있고 아주 예뻐요)](https://www.roblox.com/games/18341557319/unnamed)

아무도 못깨는 타워

[아무도 못깨는 타워](https://www.roblox.com/games/18119466179/unnamed)

응애오비

[응애오비](https://www.roblox.com/games/17677358402/unnamed)

제작자만 못깨는 타워

[제작자만 못 깨는 타워](https://www.roblox.com/games/18340831746/unnamed)

For the site tree, see the [root Markdown](https://slashpage.com/conanssam.md).
