```
local openButton = script.Parent.Parent.OpenMenu
local frame = script.Parent
local button1 = script.Parent.Button1
local button2 = script.Parent.Button2
local button3 = script.Parent.Button3
frame.Visible = false
local notOpen = true
local function openMenu()
if notOpen then
notOpen = false
frame.Visible = true
else
notOpen = true
frame.Visible = false
end
-- frame.Visible = not frame.Visible
end
local function Button1()
print("Button1 was clicked")
end
local function Button2()
print("Button2 was clicked")
end
local function Button3()
print("Button3 was clicked")
end
openButton.MouseButton1Click:Connect(openMenu)
button1.MouseButton1Click:Connect(Button1)
button2.MouseButton1Click:Connect(Button2)
button3.MouseButton1Click:Connect(Button3)
```
'tech > game' 카테고리의 다른 글
21/08/01 Roblox Studio Tutorial: How to Move a Part With a Button (0) | 2021.08.01 |
---|---|
21/07/31 Roblox Studio Tutorial: Starting 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 |
21/07/31 Roblox Custom Animation (Player) (0) | 2021.07.31 |