- open main menu botton script
```
local LoginFrame = script.Parent.Parent.LoginFrame
script.Parent.MouseButton1Click:Connect(function()
if LoginFrame.Visible == true then
LoginFrame.Visible = false
else
LoginFrame.Visible = true
end
end)
```
- StaffMenu>LoginButton>LocalScript
```
local Username = script.Parent.Parent.UsernameBox
local Password = script.Parent.Parent.PasswordBox
local MainFrame = script.Parent.Parent.Parent.MainFrame
script.Parent.MouseButton1Click:Connect(function()
if Username.Text == "aa" and Password.Text == "bb" then
script.Parent.Text = "Correct!"
wait(0.2)
script.Parent.Text = "Login"
MainFrame.Visible = true
else
script.Parent.Text = "Wrong. Now will Be Destroyed."
wait(0.5)
script.Parent.Parent.Parent.Parent.StaffMenu:Destroy()
end
end
)
```
References
Roblox Studio How To Make A Working Main Menu
- play script
```
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
```
- Settings script
```
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.SettingFrame.Visible = true
end)
```
- Close script
```
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
```
'tech > game' 카테고리의 다른 글
21/07/21 Alvin Blox - ROBLOX How To Script #1 (0) | 2021.07.21 |
---|---|
21/07/21 [단독]‘게임판 유튜브’ 메타버스 공룡, 로블록스 韓 상륙한다 (0) | 2021.07.21 |
21/07/21 Roblox | How To Make Game Teleporter - Teleport Players Between Games In Roblox!! (0) | 2021.07.21 |
21/07/21 ROBLOX Tutorial | [Updated] How to TeamCreate 🤝 (0) | 2021.07.21 |
21/07/21 ROBLOX Studio | Designing Models (0) | 2021.07.21 |