```
local frame = script.Parent
local purple = script.Parent.PurpleZone
local green = script.Parent.GreenZone
local function greenZone()
local player = game.Players.LocalPlayer
player.Character.HumanoidRootPart.CFrame = CFrame.new(182, 0.5, 80)
frame.Visible = false
end
local function purpleZone()
local player = game.Players.LocalPlayer
player.Character.HumanoidRootPart.CFrame = CFrame.new(-193, 0.5, 80)
frame.Visible = false
end
green.MouseButton1Click:Connect(greenZone)
purple.MouseButton1Click:Connect(purpleZone)
```
'tech > game' 카테고리의 다른 글
21/08/01 Roblox Studio Tutorial: Pathfinding (0) | 2021.08.01 |
---|---|
21/08/01 Roblox Studio Tutorial: How to Move a Part With a Button (0) | 2021.08.01 |
21/07/31 Roblox Studio Tutorial: How to Make a Pop-up Menu (0) | 2021.07.31 |
21/07/31 How To Play ROBLOX In VR!! (0) | 2021.07.31 |
21/07/31 Roblox Studio Tutorial: Doorway (0) | 2021.07.31 |