Advertisement
Honansik

Lucky Blocks Battlegrounds All Box Script

Nov 23rd, 2021
4,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.92 KB | None | 0 0
  1. --Best LuckyBlock script Join for more! https://discord.gg/v7PDxkhqWt
  2. local vu = game:GetService("VirtualUser")
  3. game:GetService("Players").LocalPlayer.Idled:connect(function()
  4.     vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  5.     wait(1)
  6.     vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  7. end)
  8.  
  9. game.StarterGui:SetCore("SendNotification", {
  10.     Title = "LUCKY BLOCKS Battlegrounds";
  11.     Text = "Made by MaGiXx"; -- what the text says (ofc)
  12.     Duration = 5;
  13. })
  14. wait(1)
  15. game.StarterGui:SetCore("SendNotification", {
  16.     Title = "Anti-Afk";
  17.     Text = "Enabled!"; -- what the text says (ofc)
  18.     Duration = 5;
  19. })
  20.  
  21. local LuckyBlock = Instance.new("ScreenGui")
  22. local Frame = Instance.new("ImageLabel")
  23. local title = Instance.new("TextLabel")
  24. local Frame_HUB = Instance.new("ImageLabel")
  25. local HUB = Instance.new("TextLabel")
  26. local Main = Instance.new("Frame")
  27. local LuckyBlock_2 = Instance.new("TextButton")
  28. local SuperBlock = Instance.new("TextButton")
  29. local GalaxyBlock = Instance.new("TextButton")
  30. local RainbowBlock = Instance.new("TextButton")
  31. local DiamondBlock = Instance.new("TextButton")
  32. local CopyDiscordServer = Instance.new("TextButton")
  33. local DiscordServer_box = Instance.new("TextBox")
  34. local lable_discord = Instance.new("TextLabel")
  35. local open_box = Instance.new("TextBox")
  36. local toBox = Instance.new("TextLabel")
  37. local Frame_2 = Instance.new("Frame")
  38. local close = Instance.new("ImageButton")
  39.  
  40. --Properties:
  41.  
  42. LuckyBlock.Name = "LuckyBlock"
  43. LuckyBlock.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  44. LuckyBlock.ResetOnSpawn = false
  45.  
  46. Frame.Name = "Frame"
  47. Frame.Parent = LuckyBlock
  48. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. Frame.BackgroundTransparency = 1.000
  50. Frame.ClipsDescendants = true
  51. Frame.Position = UDim2.new(0.304542094, 0, 0.326781332, 0)
  52. Frame.Size = UDim2.new(0, 525, 0, 300)
  53. Frame.Image = "rbxassetid://3570695787"
  54. Frame.ImageColor3 = Color3.fromRGB(0, 0, 0)
  55. Frame.ScaleType = Enum.ScaleType.Slice
  56. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  57. Frame.SliceScale = 0.120
  58. Frame.Active = true
  59. Frame.Draggable = true
  60.  
  61. title.Name = "title"
  62. title.Parent = Frame
  63. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64. title.BackgroundTransparency = 1.000
  65. title.Size = UDim2.new(0, 439, 0, 51)
  66. title.Font = Enum.Font.SourceSans
  67. title.Text = "LuckyBlock"
  68. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. title.TextSize = 28.000
  70.  
  71. Frame_HUB.Name = "Frame_HUB"
  72. Frame_HUB.Parent = Frame
  73. Frame_HUB.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. Frame_HUB.BackgroundTransparency = 1.000
  75. Frame_HUB.BorderColor3 = Color3.fromRGB(255, 255, 255)
  76. Frame_HUB.Position = UDim2.new(0.531428576, 0, 0.0277550742, 0)
  77. Frame_HUB.Size = UDim2.new(0, 81, 0, 33)
  78. Frame_HUB.Image = "rbxassetid://3570695787"
  79. Frame_HUB.ImageColor3 = Color3.fromRGB(255, 170, 0)
  80. Frame_HUB.ScaleType = Enum.ScaleType.Slice
  81. Frame_HUB.SliceCenter = Rect.new(100, 100, 100, 100)
  82. Frame_HUB.SliceScale = 0.120
  83.  
  84. HUB.Name = "HUB"
  85. HUB.Parent = Frame_HUB
  86. HUB.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. HUB.BackgroundTransparency = 1.000
  88. HUB.Position = UDim2.new(0, 0, -0.00494801067, 0)
  89. HUB.Size = UDim2.new(0, 81, 0, 33)
  90. HUB.Font = Enum.Font.SourceSans
  91. HUB.Text = "HUB"
  92. HUB.TextColor3 = Color3.fromRGB(0, 0, 0)
  93. HUB.TextScaled = true
  94. HUB.TextSize = 14.000
  95. HUB.TextWrapped = true
  96.  
  97. Main.Name = "Main"
  98. Main.Parent = Frame
  99. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  100. Main.BorderColor3 = Color3.fromRGB(255, 255, 255)
  101. Main.Position = UDim2.new(-0.034285713, 0, 0.170000002, 0)
  102. Main.Size = UDim2.new(0, 559, 0, 0)
  103.  
  104. LuckyBlock_2.Name = "LuckyBlock"
  105. LuckyBlock_2.Parent = Frame
  106. LuckyBlock_2.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  107. LuckyBlock_2.BorderSizePixel = 0
  108. LuckyBlock_2.Position = UDim2.new(0.0552380905, 0, 0.223333329, 0)
  109. LuckyBlock_2.Selectable = false
  110. LuckyBlock_2.Size = UDim2.new(0, 150, 0, 35)
  111. LuckyBlock_2.AutoButtonColor = false
  112. LuckyBlock_2.Font = Enum.Font.SourceSans
  113. LuckyBlock_2.Text = "LuckyBlock"
  114. LuckyBlock_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. LuckyBlock_2.TextSize = 28.000
  116.  
  117. SuperBlock.Name = "SuperBlock"
  118. SuperBlock.Parent = Frame
  119. SuperBlock.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  120. SuperBlock.BorderSizePixel = 0
  121. SuperBlock.Position = UDim2.new(0.0552381277, 0, 0.383333325, 0)
  122. SuperBlock.Selectable = false
  123. SuperBlock.Size = UDim2.new(0, 150, 0, 35)
  124. SuperBlock.AutoButtonColor = false
  125. SuperBlock.Font = Enum.Font.SourceSans
  126. SuperBlock.Text = "SuperBlock"
  127. SuperBlock.TextColor3 = Color3.fromRGB(255, 255, 255)
  128. SuperBlock.TextSize = 28.000
  129.  
  130. GalaxyBlock.Name = "GalaxyBlock"
  131. GalaxyBlock.Parent = Frame
  132. GalaxyBlock.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  133. GalaxyBlock.BorderSizePixel = 0
  134. GalaxyBlock.Position = UDim2.new(0.0552381277, 0, 0.826666653, 0)
  135. GalaxyBlock.Selectable = false
  136. GalaxyBlock.Size = UDim2.new(0, 150, 0, 35)
  137. GalaxyBlock.AutoButtonColor = false
  138. GalaxyBlock.Font = Enum.Font.SourceSans
  139. GalaxyBlock.Text = "GalaxyBlock"
  140. GalaxyBlock.TextColor3 = Color3.fromRGB(255, 255, 255)
  141. GalaxyBlock.TextSize = 28.000
  142.  
  143. RainbowBlock.Name = "RainbowBlock"
  144. RainbowBlock.Parent = Frame
  145. RainbowBlock.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  146. RainbowBlock.BorderSizePixel = 0
  147. RainbowBlock.Position = UDim2.new(0.0552381277, 0, 0.679999948, 0)
  148. RainbowBlock.Selectable = false
  149. RainbowBlock.Size = UDim2.new(0, 150, 0, 35)
  150. RainbowBlock.AutoButtonColor = false
  151. RainbowBlock.Font = Enum.Font.SourceSans
  152. RainbowBlock.Text = "RainbowBlock"
  153. RainbowBlock.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. RainbowBlock.TextSize = 28.000
  155.  
  156. DiamondBlock.Name = "DiamondBlock"
  157. DiamondBlock.Parent = Frame
  158. DiamondBlock.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  159. DiamondBlock.BorderSizePixel = 0
  160. DiamondBlock.Position = UDim2.new(0.0552381277, 0, 0.533333302, 0)
  161. DiamondBlock.Selectable = false
  162. DiamondBlock.Size = UDim2.new(0, 150, 0, 35)
  163. DiamondBlock.AutoButtonColor = false
  164. DiamondBlock.Font = Enum.Font.SourceSans
  165. DiamondBlock.Text = "DiamondBlock"
  166. DiamondBlock.TextColor3 = Color3.fromRGB(255, 255, 255)
  167. DiamondBlock.TextSize = 28.000
  168.  
  169. CopyDiscordServer.Name = "CopyDiscordServer"
  170. CopyDiscordServer.Parent = Frame
  171. CopyDiscordServer.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  172. CopyDiscordServer.BorderSizePixel = 0
  173. CopyDiscordServer.Position = UDim2.new(0.531428576, 0, 0.826666713, 0)
  174. CopyDiscordServer.Selectable = false
  175. CopyDiscordServer.Size = UDim2.new(0, 194, 0, 35)
  176. CopyDiscordServer.AutoButtonColor = false
  177. CopyDiscordServer.Font = Enum.Font.SourceSans
  178. CopyDiscordServer.Text = "CopyDiscordServer"
  179. CopyDiscordServer.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. CopyDiscordServer.TextSize = 28.000
  181.  
  182. DiscordServer_box.Name = "DiscordServer_box"
  183. DiscordServer_box.Parent = Frame
  184. DiscordServer_box.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  185. DiscordServer_box.BorderSizePixel = 0
  186. DiscordServer_box.Position = UDim2.new(0.531428576, 0, 0.709999979, 0)
  187. DiscordServer_box.Size = UDim2.new(0, 194, 0, 35)
  188. DiscordServer_box.ClearTextOnFocus = false
  189. DiscordServer_box.Font = Enum.Font.SourceSans
  190. DiscordServer_box.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  191. DiscordServer_box.PlaceholderText = "https://discord.gg/v7PDxkhqWt"
  192. DiscordServer_box.Text = "https://discord.gg/v7PDxkhqWt"
  193. DiscordServer_box.TextColor3 = Color3.fromRGB(255, 255, 255)
  194. DiscordServer_box.TextSize = 14.000
  195.  
  196. lable_discord.Name = "lable_discord"
  197. lable_discord.Parent = Frame
  198. lable_discord.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199. lable_discord.BackgroundTransparency = 1.000
  200. lable_discord.Position = UDim2.new(0.531428576, 0, 0.533333361, 0)
  201. lable_discord.Size = UDim2.new(0, 194, 0, 53)
  202. lable_discord.Font = Enum.Font.SourceSans
  203. lable_discord.Text = "--You will find many other scripts in this discord server."
  204. lable_discord.TextColor3 = Color3.fromRGB(0, 170, 0)
  205. lable_discord.TextScaled = true
  206. lable_discord.TextSize = 28.000
  207. lable_discord.TextWrapped = true
  208.  
  209. open_box.Name = "open_box"
  210. open_box.Parent = Frame
  211. open_box.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  212. open_box.BorderSizePixel = 0
  213. open_box.Position = UDim2.new(0.750476241, 0, 0.313333333, 0)
  214. open_box.Size = UDim2.new(0, 56, 0, 35)
  215. open_box.ClearTextOnFocus = false
  216. open_box.Font = Enum.Font.SourceSans
  217. open_box.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  218. open_box.PlaceholderText = "Value"
  219. open_box.Text = "1"
  220. open_box.TextColor3 = Color3.fromRGB(255, 255, 255)
  221. open_box.TextSize = 28.000
  222. open_box.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  223.  
  224. toBox.Name = "toBox"
  225. toBox.Parent = Frame
  226. toBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  227. toBox.BackgroundTransparency = 1.000
  228. toBox.Position = UDim2.new(0.531428635, 0, 0.286666691, 0)
  229. toBox.Size = UDim2.new(0, 194, 0, 50)
  230. toBox.Font = Enum.Font.SourceSans
  231. toBox.Text = "0 to "
  232. toBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  233. toBox.TextSize = 28.000
  234.  
  235. Frame_2.Parent = Frame
  236. Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  237. Frame_2.BorderColor3 = Color3.fromRGB(255, 255, 255)
  238. Frame_2.Position = UDim2.new(0.400000006, 0, 0.170000002, 0)
  239. Frame_2.Size = UDim2.new(0, 0, 0, 292)
  240.  
  241. close.Name = "close"
  242. close.Parent = Frame
  243. close.BackgroundTransparency = 1.000
  244. close.Position = UDim2.new(0.90054822, 0, 0.00678133965, 0)
  245. close.Size = UDim2.new(0, 45, 0, 45)
  246. close.ZIndex = 2
  247. close.Image = "rbxassetid://3926305904"
  248. close.ImageRectOffset = Vector2.new(284, 4)
  249. close.ImageRectSize = Vector2.new(24, 24)
  250.  
  251.  
  252. ----------------------------------------------------------------
  253.  
  254. close.MouseButton1Click:connect(function()
  255.     Frame.Visible = false
  256. end)
  257.  
  258. LuckyBlock_2.MouseButton1Click:connect(function()
  259.     for i=1, open_box.Text do --This number means that you'll get 100 gears (you can change this)
  260.         game.ReplicatedStorage.SpawnLuckyBlock:FireServer()
  261.     end
  262. end)
  263.  
  264. DiamondBlock.MouseButton1Click:connect(function()
  265.     for i=1, open_box.Text do --This number means that you'll get 100 gears (you can change this)
  266.         game.ReplicatedStorage.SpawnDiamondBlock:FireServer()
  267.     end
  268. end)
  269.  
  270. SuperBlock.MouseButton1Click:connect(function()
  271.     for i=1, open_box.Text do --This number means that you'll get 100 gears (you can change this)
  272.         game.ReplicatedStorage.SpawnSuperBlock:FireServer()
  273.     end
  274. end)
  275.  
  276. RainbowBlock.MouseButton1Click:connect(function()
  277.     for i=1, open_box.Text do --This number means that you'll get 100 gears (you can change this)
  278.         game.ReplicatedStorage.SpawnRainbowBlock:FireServer()
  279.     end
  280. end)
  281.  
  282. GalaxyBlock.MouseButton1Click:connect(function()
  283.     for i=1, open_box.Text do --This number means that you'll get 100 gears (you can change this)
  284.         game.ReplicatedStorage.SpawnGalaxyBlock:FireServer()
  285.     end
  286. end)
  287.  
  288. CopyDiscordServer.MouseButton1Down:connect(function()
  289.     setclipboard("https://discord.gg/TyUzMpMMUE")
  290.     wait(1)
  291.     game.StarterGui:SetCore("SendNotification", {
  292.         Title = "Success!";
  293.         Text = "Copy Discord: https://discord.gg/v7PDxkhqWt"; -- what the text says (ofc)
  294.         Duration = 5;
  295.     })
  296. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement