Advertisement
ERROR_CODE

Game Menu

Dec 1st, 2023 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.56 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local PlayButton = Instance.new("TextButton")
  3. local OptionButton = Instance.new("TextButton")
  4. local LeaveButton = Instance.new("TextButton")
  5. local EasyButton = Instance.new("TextButton")
  6. local MediumButton = Instance.new("TextButton")
  7. local HardButton = Instance.new("TextButton")
  8. local Chapter = Instance.new("TextLabel")
  9. local BackButton = Instance.new("TextButton")
  10. local ClickSound = Instance.new("Sound")
  11. local Id = "9113651501"
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14.  
  15. ClickSound.Parent = game.Workspace
  16. ClickSound.SoundId = "rbxassetid://"..Id
  17. ClickSound.Playing = true
  18. ClickSound.Looped = false
  19. ClickSound.Volume = 1
  20. ClickSound:Stop()
  21.  
  22.  
  23. Chapter.Parent = ScreenGui
  24. Chapter.BackgroundTransparency = 1
  25. Chapter.Size = UDim2.new(2, 0, 2, 0)
  26. Chapter.Position = UDim2.new(-3, 0, -0.6 ,0)
  27. Chapter.TextXAlignment = Enum.TextXAlignment.Center
  28. Chapter.TextScaled = true
  29. Chapter.Text = "My nightmare 3"
  30. Chapter.TextColor3 = Color3.new(255, 255, 255)
  31. Chapter.Font = Enum.Font.IndieFlower
  32.  
  33.  
  34. PlayButton.Name = "PlayButton"
  35. PlayButton.Parent = ScreenGui
  36. PlayButton.BackgroundTransparency = 1
  37. PlayButton.Position = UDim2.new(-0.8, 0, 0.15, 0)
  38. PlayButton.Size = UDim2.new(0, 125, 0, 50)
  39. PlayButton.Font = Enum.Font.IndieFlower
  40. PlayButton.Text = "Play"
  41. PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  42. PlayButton.TextSize = 100
  43. PlayButton.MouseButton1Down:connect(function()
  44. ClickSound:Play()
  45. PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
  46. wait(0.1)
  47. OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
  48. wait(0.1)
  49. LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
  50. wait(0.5)
  51. Chapter:TweenPosition(UDim2.new(-3, 0, -0.6 ,0), 'Out', 4, true)
  52. PlayButton.Visible = false
  53. OptionButton.Visible = false
  54. LeaveButton.Visible = false
  55. Chapter.Visivle = false
  56. EasyButton.Visible = false
  57. MediumButton.Visible = false
  58. HardButton.Visible = false
  59. BackButton.Visible = false
  60. end)
  61.  
  62. OptionButton.Name = "OptionButton"
  63. OptionButton.Parent = ScreenGui
  64. OptionButton.BackgroundTransparency = 1
  65. OptionButton.Position = UDim2.new(-0.8, 0, 0.4, 0)
  66. OptionButton.Size = UDim2.new(0, 125, 0, 50)
  67. OptionButton.Font = Enum.Font.IndieFlower
  68. OptionButton.Text = "Options"
  69. OptionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. OptionButton.TextSize = 100
  71. OptionButton.MouseButton1Down:connect(function()
  72. ClickSound:Play()
  73. EasyButton.Visible = true
  74. MediumButton.Visible = true
  75. HardButton.Visible = true
  76. BackButton.Visible = true
  77. PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
  78. wait(0.1)
  79. OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
  80. wait(0.1)
  81. LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
  82. wait(0.5)
  83. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
  84. wait(0.5)
  85. EasyButton:TweenPosition(UDim2.new(0.1, 0, 0.4, 0), 'Out', 4, true)
  86. wait(0.1)
  87. MediumButton:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
  88. wait(0.1)
  89. HardButton:TweenPosition(UDim2.new(0.75, 0, 0.4, 0), 'Out', 4, true)
  90. BackButton.Position = UDim2.new(0.45, 0, 0.8, 0)
  91. end)
  92.  
  93. LeaveButton.Name = "LeaveButton"
  94. LeaveButton.Parent = ScreenGui
  95. LeaveButton.BackgroundTransparency = 1
  96. LeaveButton.Position = UDim2.new(-0.8, 0, 0.65, 0)
  97. LeaveButton.Size = UDim2.new(0, 125, 0, 50)
  98. LeaveButton.Font = Enum.Font.IndieFlower
  99. LeaveButton.Text = "Leave"
  100. LeaveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. LeaveButton.TextSize = 100
  102. LeaveButton.MouseButton1Down:connect(function()
  103. ClickSound:Play()
  104. game.Players.LocalPlayer:Kick("Bye")
  105. end)
  106.  
  107. EasyButton.Name = "EasyButton"
  108. EasyButton.Parent = ScreenGui
  109. EasyButton.BackgroundTransparency = 1
  110. EasyButton.Position = UDim2.new(0.1, 0, 1, 0)
  111. EasyButton.Size = UDim2.new(0, 125, 0, 50)
  112. EasyButton.Font = Enum.Font.IndieFlower
  113. EasyButton.Text = ">>Easy<<"
  114. EasyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  115. EasyButton.TextSize = 100
  116. EasyButton.MouseButton1Down:connect(function()
  117. ClickSound:Play()
  118. EasyButton.Text = ">>Easy<<"
  119. MediumButton.Text = "Medium"
  120. HardButton.Text = "Hard"
  121. Humanoid18.WalkSpeed = 16
  122. end)
  123.  
  124. MediumButton.Name = "MediumButton"
  125. MediumButton.Parent = ScreenGui
  126. MediumButton.BackgroundTransparency = 1
  127. MediumButton.Position = UDim2.new(0.45, 0, 1, 0)
  128. MediumButton.Size = UDim2.new(0, 125, 0, 50)
  129. MediumButton.Font = Enum.Font.IndieFlower
  130. MediumButton.Text = "Medium"
  131. MediumButton.TextColor3 = Color3.fromRGB(255, 155, 0)
  132. MediumButton.TextSize = 100
  133. MediumButton.MouseButton1Down:connect(function()
  134. ClickSound:Play()
  135. EasyButton.Text = "Easy"
  136. MediumButton.Text = ">>Medium<<"
  137. HardButton.Text = "Hard"
  138. Humanoid18.WalkSpeed = 50
  139. end)
  140.  
  141. HardButton.Name = "HardButton"
  142. HardButton.Parent = ScreenGui
  143. HardButton.BackgroundTransparency = 1
  144. HardButton.Position = UDim2.new(0.75, 0, 1, 0)
  145. HardButton.Size = UDim2.new(0, 125, 0, 50)
  146. HardButton.Font = Enum.Font.IndieFlower
  147. HardButton.Text = "Hard"
  148. HardButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  149. HardButton.TextSize = 100
  150. HardButton.MouseButton1Down:connect(function()
  151. ClickSound:Play()
  152. EasyButton.Text = "Easy"
  153. MediumButton.Text = "Medium"
  154. HardButton.Text = ">>Hard<<"
  155. Humanoid18.WalkSpeed = 100
  156. end)
  157.  
  158. BackButton.Name = "BackButton"
  159. BackButton.Parent = ScreenGui
  160. BackButton.BackgroundTransparency = 1
  161. BackButton.Position = UDim2.new(0.45, 0, 1, 0)
  162. BackButton.Size = UDim2.new(0, 125, 0, 50)
  163. BackButton.Font = Enum.Font.IndieFlower
  164. BackButton.Text = "Back"
  165. BackButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. BackButton.TextSize = 100
  167. BackButton.MouseButton1Down:connect(function()
  168. BackButton.Position = UDim2.new(0.45, 0, 1, 0)
  169. ClickSound:Play()
  170. HardButton:TweenPosition(UDim2.new(0.75, 0, 1, 0), 'Out', 4, true)
  171. wait(0.1)
  172. MediumButton:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
  173. wait(0.1)
  174. EasyButton:TweenPosition(UDim2.new(0.1, 0, 1, 0), 'Out', 4, true)
  175. wait(0.5)
  176. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  177. wait(0.5)
  178. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  179. wait(0.1)
  180. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  181. wait(0.1)
  182. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  183. wait(0.5)
  184. EasyButton.Visible = false
  185. MediumButton.Visible = false
  186. HardButton.Visible = false
  187. BackButton.Visible = false
  188. end)
  189.  
  190. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  191. wait(0.1)
  192. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  193. wait(0.1)
  194. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  195. wait(0.5)
  196. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement