Advertisement
ERROR_CODE

Sup Game Box

Sep 25th, 2024 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.42 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("SupWorkspace") then
  2. game:GetService("CoreGui"):FindFirstChild("SupWorkspace"):Destroy()
  3. end
  4. SupWorkspace = Instance.new("ScreenGui")
  5. HeadImage = Instance.new("ImageLabel")
  6. ThemeSound = Instance.new("Sound")
  7. HeadImageUICorner = Instance.new("UICorner")
  8. HeadFrameBackground = Instance.new("ScrollingFrame")
  9. SelectSound = Instance.new("Sound")
  10. GameOverSound_1 = Instance.new("Sound")
  11. LanguageSelect = Instance.new("TextLabel")
  12. UserInputService = game:GetService("UserInputService")
  13. BackGround = Instance.new("ImageButton")
  14. GamesList = Instance.new("TextLabel")
  15.  
  16. spawn(function()
  17. while task.wait() do
  18. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  19. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  20. end
  21. end)
  22.  
  23. SupWorkspace.Name = "SupWorkspace"
  24. SupWorkspace.Parent = game.CoreGui
  25. SupWorkspace.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26. SupWorkspace.DisplayOrder = 99999999999999999999999999999999999999999999999
  27. game.CoreGui.SupWorkspace.Enabled = true
  28.  
  29. ThemeSound.Parent = game.Workspace
  30. ThemeSound.SoundId = "rbxassetid://9048376021"
  31. ThemeSound.Playing = true
  32. ThemeSound.Looped = true
  33. ThemeSound.Volume = 1
  34.  
  35. SelectSound.Parent = game.Workspace
  36. SelectSound.SoundId = ""
  37. SelectSound.Playing = true
  38. SelectSound.Looped = false
  39. SelectSound.Volume = 1
  40.  
  41. GameOverSound_1.Parent = game.Workspace
  42. GameOverSound_1.SoundId = ""
  43. GameOverSound_1.Playing = false
  44. GameOverSound_1.Looped = false
  45. GameOverSound_1.Volume = 1
  46.  
  47. --[[BackGround.Parent = SupWorkspace
  48. BackGround.Size = UDim2.new(1,0,1,100)
  49. BackGround.Position = UDim2.new(0,0,0,-100)
  50. BackGround.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  51. BackGround.AutoButtonColor = false
  52. game.CoreGui.RobloxGui:Destroy()
  53. game.CoreGui.TopBarApp:Destroy()]]
  54.  
  55. HeadFrameBackground.Name = "HeadFrameBackground"
  56. HeadFrameBackground.Parent = SupWorkspace
  57. HeadFrameBackground.Active = true
  58. HeadFrameBackground.BackgroundTransparency = 1
  59. HeadFrameBackground.BorderSizePixel = 0
  60. HeadFrameBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  61. HeadFrameBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
  62. HeadFrameBackground.Size = UDim2.new(0, 600, 0, 350)
  63. HeadFrameBackground.CanvasSize = UDim2.new(0, 0, 0, 0)
  64. HeadFrameBackground.ScrollBarThickness = 0
  65.  
  66. HeadImage.Name = "TestImage"
  67. HeadImage.Parent = HeadFrameBackground
  68. HeadImage.AnchorPoint = Vector2.new(0.5, 0.5)
  69. HeadImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  70. HeadImage.Position = UDim2.new(0.5, 0, 0.5, 0)
  71. HeadImage.Size = UDim2.new(0, 600, 0, 350)
  72. HeadImage.Image = "rbxassetid://111808551688355"
  73. HeadImage.Active = true
  74.  
  75. LanguageSelect.Name = "LanguageSelect"
  76. LanguageSelect.Parent = HeadImage
  77. LanguageSelect.BackgroundTransparency = 1
  78. LanguageSelect.AnchorPoint = Vector2.new(0.5, 0.5)
  79. LanguageSelect.Position = UDim2.new(0.5, 0, 0.5, 0)
  80. LanguageSelect.Size = UDim2.new(0, 500, 0, 300)
  81. LanguageSelect.Font = Enum.Font.Arcade
  82. LanguageSelect.Text = "->1. Русский  \n\n2. English"
  83. LanguageSelect.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. LanguageSelect.TextSize = 55
  85. LanguageSelect.TextXAlignment = Enum.TextXAlignment.Center
  86. LanguageSelect.TextYAlignment = Enum.TextYAlignment.Top
  87. LanguageSelect.Visible = false
  88.  
  89. HeadImageUICorner.CornerRadius = UDim.new(0, 10)
  90. HeadImageUICorner.Parent = HeadImage
  91.  
  92. GamesList.Name = "GamesList"
  93. GamesList.Parent = HeadImage
  94. GamesList.BackgroundTransparency = 0
  95. GamesList.AnchorPoint = Vector2.new(0.5, 0.5)
  96. GamesList.Position = UDim2.new(0.5, 0, 0.5, 0)
  97. GamesList.Size = UDim2.new(0, 450, 0, 500)
  98. GamesList.Font = Enum.Font.Arcade
  99. GamesList.Text = "->01 LAMB GAME"
  100. GamesList.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. GamesList.TextSize = 55
  102. GamesList.TextXAlignment = Enum.TextXAlignment.Center
  103. GamesList.TextYAlignment = Enum.TextYAlignment.Top
  104. GamesList.Visible = false
  105.  
  106. spawn(function()
  107. if UserInputService.TouchEnabled and UserInputService.KeyboardEnabled == false then
  108. HeadImage.Size = UDim2.new(0, 600, 0, 350)
  109. HeadFrameBackground.Size = UDim2.new(0, 600, 0, 350)
  110. LanguageSelect.Size = UDim2.new(0, 300, 0, 100)
  111. LanguageSelect.TextSize = 35
  112. GamesList.TextSize = 35
  113.  
  114.  
  115. else
  116. HeadImage.Size = UDim2.new(0, 1000, 0, 650)
  117. HeadFrameBackground.Size = UDim2.new(0, 1000, 0, 650)
  118. LanguageSelect.Size = UDim2.new(0, 500, 0, 300)
  119. LanguageSelect.TextSize = 55
  120. GamesList.Size = UDim2.new(0, 450, 0, 500)
  121.  
  122.  
  123. end
  124. end)
  125.  
  126. function createfolders(path)
  127. local pathtbl = string.split(path, "/")
  128. for i, v in pairs(pathtbl) do
  129. if i == 1 then
  130. if not isfolder(v) then
  131. makefolder(v)
  132. end
  133. else
  134. local newpath = pathtbl[1]
  135. for i2=2, i-1 do
  136. newpath = newpath.. "/" ..pathtbl[i2]
  137. end
  138. newpath = newpath.. "/" ..v
  139. if not isfolder(newpath) then
  140. makefolder(newpath)
  141. end
  142. end
  143. end
  144. end
  145.  
  146. if not isfolder("SupWorkspace") then
  147. createfolders("SupWorkspace")
  148. end
  149.  
  150.  
  151.  
  152. spawn(function()
  153. if not isfile("SupWorkspace/Theme_Music.wav") then
  154. local success_2, response_2 = pcall(function()
  155. return
  156. game:HttpGet("https://dl.sndup.net/j5vkv/515615__mrthenoronha__8-bit-game-theme.wav")
  157. end)
  158.  
  159. if success_2 then
  160. MainSound = "https://dl.sndup.net/j5vkv/515615__mrthenoronha__8-bit-game-theme.wav"
  161. DataMatch_2 = MainSound:match(".wav")
  162. Theme_Music = "MainSound"..DataMatch_2
  163. ThemeSound.Playing = false
  164.  
  165. writefile("SupWorkspace/Theme_Music.wav", response_2)
  166. ThemeSound.SoundId = getcustomasset("SupWorkspace/Theme_Music.wav")
  167. ThemeSound.Playing = true
  168. else
  169.  
  170. ThemeSound.SoundId = "rbxassetid://9048376021"
  171. ThemeSound.Playing = true
  172. end
  173.  
  174. else
  175. ThemeSound.SoundId = getcustomasset("SupWorkspace/Theme_Music.wav")
  176. ThemeSound.Playing = true
  177. end
  178. end)
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185. spawn(function()
  186. if not isfile("SupWorkspace/Game_Over.wav") then
  187. local success_3, response_3 = pcall(function()
  188. return
  189. game:HttpGet("https://dl.sndup.net/mdgmq/Game_Over.wav")
  190. end)
  191.  
  192. if success_3 then
  193. GameOverSound = "https://dl.sndup.net/mdgmq/Game_Over.wav"
  194. DataMatch_3 = GameOverSound:match(".wav")
  195. Game_Over = "GameOverSound"..DataMatch_3
  196.  
  197. writefile("SupWorkspace/Game_Over.wav", response_3)
  198.  
  199. GameOverSound_1.SoundId = getcustomasset("SupWorkspace/Game_Over.wav")
  200. end
  201. else
  202. GameOverSound_1.SoundId = getcustomasset("SupWorkspace/Game_Over.wav")
  203. end
  204. end)
  205.  
  206.  
  207. spawn(function()
  208. if not isfile("SupWorkspace/Select_Menu.wav") then
  209. local success_4, response_4 = pcall(function()
  210. return
  211. game:HttpGet("https://dl.sndup.net/kjjth/277216__thedweebman__8-bit-select-menu-select.wav")
  212. end)
  213.  
  214. if success_4 then
  215. SelectSound_1 = "https://dl.sndup.net/kjjth/277216__thedweebman__8-bit-select-menu-select.wav"
  216. DataMatch_4 = SelectSound_1:match(".wav")
  217. Select_Menu = "SelectSound_1"..DataMatch_4
  218.  
  219. writefile("SupWorkspace/Select_Menu.wav", response_4)
  220. SelectSound.SoundId = getcustomasset("SupWorkspace/Select_Menu.wav")
  221.  
  222. else
  223. end
  224. SelectSound.SoundId = getcustomasset("SupWorkspace/Select_Menu.wav")
  225. end
  226. end)
  227.  
  228.  
  229.  
  230. spawn(function()
  231. if not isfile("SupWorkspace/Main.png") then
  232. local success, response = pcall(function()
  233. return
  234. game:HttpGet("https://i.ibb.co/WvH1n0W/maxresdefault.png")
  235. end)
  236.  
  237. if success then
  238. MainTheme = "https://i.ibb.co/WvH1n0W/maxresdefault.png"
  239. DataMatch = MainTheme:match("^.+(%..+)$")
  240. Main = "MainTheme" ..DataMatch
  241.  
  242. writefile("SupWorkspace/Main.png", response)
  243.  
  244. HeadImage.Image = getcustomasset("SupWorkspace/Main.png")
  245. LanguageSelect.Visible = true
  246. else
  247. HeadImage.Image = "rbxassetid://111808551688355"
  248. end
  249.  
  250. else
  251. HeadImage.Image = getcustomasset("SupWorkspace/Main.png")
  252. LanguageSelect.Visible = true
  253. end
  254. end)
  255.  
  256.  
  257.  
  258. UserInputService.InputBegan:Connect(function(input)
  259. if input.KeyCode == Enum.KeyCode.Up then
  260. if LanguageSelect.Visible == true then
  261. LanguageSelect.Text = "->1. Русский  \n\n2. English"
  262. SelectSound.SoundId = getcustomasset("SupWorkspace/Select_Menu.wav")
  263. SelectSound:Play()
  264. end
  265. end
  266. if input.KeyCode == Enum.KeyCode.Down then
  267. if LanguageSelect.Visible == true then
  268. LanguageSelect.Text = "1. Русский\n\n->2. English  "
  269. SelectSound.SoundId = getcustomasset("SupWorkspace/Select_Menu.wav")
  270. SelectSound:Play()
  271. end
  272. end
  273. if input.KeyCode == Enum.KeyCode.A then
  274. if LanguageSelect.Visible == true then
  275. if LanguageSelect.Text == "1. Русский\n\n->2. English  " then
  276. LanguageSelect.Visible = false
  277. GamesList.Visible = true
  278. GamesList.Text = "->01 LAMB GAME"
  279. end
  280. end
  281. end
  282. if input.KeyCode == Enum.KeyCode.A then
  283. if LanguageSelect.Visible == true then
  284. if LanguageSelect.Text == "->1. Русский  \n\n2. English" then
  285. LanguageSelect.Visible = false
  286. GamesList.Visible = true
  287. GamesList.Text = "->01 ИГРА ЯГНЕНКА"
  288. end
  289. end
  290. end
  291. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement