3주차>
🙆♂️ 출발지점 → 도착지점 두 개 blockpart 생성하기
(출발지점 이름 Teleport, 도착지점 이름 Destination)
🙆♂️ 출발지점에 새 script 추가 → 이름 Teleport
① teleportPart = script.②
local ③ teleport(otherPart)
local character = otherPart.Parent
local humanoid = character:FindFirstChildOfClass('Humanoid')
local destination = game.④.⑤
destination.⑥ = ⑦
destination.⑧ = ⑨
destination.⑩ = ⓐ
if humanoid then
humanoid.RootPart.CFrame = CFrame.new(destination.Position)
end
end
teleportPart.Touched:Connect(ⓑ)
🙆♂️ 도전과제>
① Destination의 세가지 속성 Anchored, CanCollide, Transparency 값을 다르게 바꿔보고 실행해보기
② 맵을 꾸며보고, Destination을 toolbox 원하는 모델과 결합한 복합공간으로 바꾸어 플레이어를 순간이동해보기
'Roblox Game Creator' 카테고리의 다른 글
로블록스_기초_5주차 (Magic Bridge) (0) | 2022.10.02 |
---|---|
로블록스_기초_4주차 (R/Y/G Light) (0) | 2022.09.28 |
로블록스_기초_2&3주차(WalkSpeed UP!) (0) | 2022.09.11 |
(비공개) 로블록스_기초 lua 정답 모음 (0) | 2022.09.11 |
(비공개) 로블록스_심화 lua 정답 모음 (0) | 2022.08.29 |
댓글