본문바로가기
수동 안내
국내 유일 청소년 수학 잡지 수학동아
[공지사항] [이벤트] 나도 도전! 방구석 게임 개발자!
수학동아 2021.07.26 20:51 조회 653

8월호의 특집인 메타버스 기사! 다들 잘 보셨나요?

마지막 페이지에는 재미있는 이벤트가 있었죠.

바로 '너도 할 수 있어! 방구석 게임 개발자!'

여러분의 점프맵을 만들고, 공유해주세요!

점프맵을 만드는 방법은 아래와 같아요.

 

란이님의 '나만의 로블록스 게임 만들기 점프맵 만드는 방법' 영상을 참고하면

더 쉽게 만들 수 있답니다.

아래를 클릭해 영상을 확인하세요.

https://youtu.be/FtAPOTf7KM0

 

코드는 아래를 참고하세요~!

 

리스폰 블록 스크립트 밟으면 안 되는 블록 스크립트

local Players = game:GetService("Players")

local ServerStorage = game:GetService("ServerStorage")

 

local checkpoint = script.Parent

 

function onTouched(hit)

if hit and hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then

local player = Players:GetPlayerFromCharacter(hit.Parent)

local checkpointData = ServerStorage:FindFirstChild("CheckpointData")

if not checkpointData then

checkpointData = Instance.new("Folder")

checkpointData.Name = "CheckpointData"

checkpointData.Parent = ServerStorage

end

 

local userIdString = tostring(player.UserId)

local checkpointValue = checkpointData:FindFirstChild(userIdString)

if not checkpointValue then

checkpointValue = Instance.new("ObjectValue")

checkpointValue.Name = userIdString

checkpointValue.Parent = checkpointData

 

player.CharacterAdded:connect(function(character)

wait()

local storedCheckpoint = ServerStorage.CheckpointData[userIdString].Value

character:MoveTo(storedCheckpoint.Position + Vector3.new(math.random(-4, 4), 4, math.random(-4, 4)))

end)

end

 

checkpointValue.Value = checkpoint

end

end

 

checkpoint.Touched:Connect(onTouched)

local trapPart = script.Parent

 

local function onPartTouch(otherPart)

local partParent = otherPart.Parent

local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")

if humanoid then

-- Set player's health to 0

humanoid.Health = 0

end

end

trapPart.Touched:Connect(onPartTouch)

 

다양한 모양의 접프 블록과 재미있는 구성으로 나만의 점프맵을 자랑해주세요!

8월 31일까지 아래에 공개 댓글로 내가 만든 로블록스 게임 링크를 공유하고

그 밑에 비밀댓글로 이름, 연락처, 주소를 적어주면 선물을 보내드릴게요~!

 

 

  •  
    hahaboy Lv.2 2021.08.09 02:30

    https://www.roblox.com/games/7221784617/

    댓글 작성하기 좋아요0 댓글수1
    •  
      hahaboy Lv.2 2021.08.09 02:32 비밀댓글
      비밀 댓글이 등록 되었습니다!
  •  
    psh4008 Lv.2 2021.09.01 00:48

    https://web.roblox.com/games/7372732997/lab

    댓글 작성하기 좋아요0 댓글수1
    •  
      psh4008 Lv.2 2021.09.01 00:49 비밀댓글
      비밀 댓글이 등록 되었습니다!
  • 폴리매스 문제는 과학기술진흥기금 및 복권기금의 재원으로 운영되고, 과학기술정보통신부와 한국과학창의재단의 지원을 받아 수행된 성과물로 우리나라의 과학기술 발전과 사회적 가치 증진에 기여하고 있습니다.

  • ☎문의 02-6749-3911