Advertisement
19xjohnnyx

Lucky Blocks (Get Any Block)

Apr 15th, 2022
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.64 KB | None | 0 0
  1. -- credits to bararakseika on v3rm , enjoy hacking !
  2. local LuckyGUI = Instance.new("ScreenGui")
  3. local ScriptBox = Instance.new("Frame")
  4. local ScriptHere = Instance.new("TextBox")
  5. local TextButton = Instance.new("TextButton")
  6. local TextButton_2 = Instance.new("TextButton")
  7. local Main = Instance.new("Frame")
  8. local GuiName = Instance.new("TextLabel")
  9. local CheckFE = Instance.new("TextButton")
  10. local ScriptBoxOpen = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13. local RainbowBlock = Instance.new("TextButton")
  14. local LuckyBlock = Instance.new("TextButton")
  15. local DiamondBlock = Instance.new("TextButton")
  16. local SuperBlock = Instance.new("TextButton")
  17. local TextLabel_3 = Instance.new("TextLabel")
  18. local Save = Instance.new("TextButton")
  19. local Load = Instance.new("TextButton")
  20. local ClickTP = Instance.new("TextButton")
  21. local TextLabel_4 = Instance.new("TextLabel")
  22. local Close = Instance.new("TextButton")
  23. local OpenFrame = Instance.new("Frame")
  24. local TextButton_3 = Instance.new("TextButton")
  25.  
  26. -- Properties
  27.  
  28. LuckyGUI.Name = "Lucky GUI"
  29. LuckyGUI.Parent = game.Players.LocalPlayer.PlayerGui
  30.  
  31. ScriptBox.Name = "ScriptBox"
  32. ScriptBox.Parent = LuckyGUI
  33. ScriptBox.Active = true
  34. ScriptBox.BackgroundColor3 = Color3.new(1, 1, 1)
  35. ScriptBox.BorderColor3 = Color3.new(1, 1, 1)
  36. ScriptBox.Position = UDim2.new(0.600886941, 0, 0.0904645473, 0)
  37. ScriptBox.Size = UDim2.new(0, 519, 0, 502)
  38.  
  39. ScriptHere.Name = "ScriptHere"
  40. ScriptHere.Parent = ScriptBox
  41. ScriptHere.BackgroundColor3 = Color3.new(1, 1, 1)
  42. ScriptHere.BorderColor3 = Color3.new(1, 1, 1)
  43. ScriptHere.Position = UDim2.new(0, 0, -0.0119521916, 0)
  44. ScriptHere.Size = UDim2.new(0, 519, 0, 433)
  45. ScriptHere.Font = Enum.Font.SourceSans
  46. ScriptHere.Text = "Script Here.."
  47. ScriptHere.TextColor3 = Color3.new(0, 0, 0)
  48. ScriptHere.TextSize = 20
  49.  
  50. TextButton.Parent = ScriptBox
  51. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  52. TextButton.BorderColor3 = Color3.new(1, 0, 0)
  53. TextButton.BorderSizePixel = 3
  54. TextButton.Position = UDim2.new(0.527938366, 0, 0.862549782, 0)
  55. TextButton.Size = UDim2.new(0, 245, 0, 69)
  56. TextButton.Font = Enum.Font.SourceSans
  57. TextButton.Text = "Clear"
  58. TextButton.TextColor3 = Color3.new(0, 0, 0)
  59. TextButton.TextSize = 14
  60.  
  61. TextButton_2.Parent = ScriptBox
  62. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  63. TextButton_2.BorderColor3 = Color3.new(0.333333, 1, 0)
  64. TextButton_2.BorderSizePixel = 3
  65. TextButton_2.Position = UDim2.new(0, 0, 0.862549782, 0)
  66. TextButton_2.Size = UDim2.new(0, 242, 0, 69)
  67. TextButton_2.Font = Enum.Font.SourceSans
  68. TextButton_2.Text = "Execute"
  69. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  70. TextButton_2.TextSize = 14
  71.  
  72. Main.Name = "Main"
  73. Main.Parent = LuckyGUI
  74. Main.Active = true
  75. Main.BackgroundColor3 = Color3.new(0.666667, 1, 0)
  76. Main.Position = UDim2.new(0, 70, 0, 68)
  77. Main.Size = UDim2.new(0, 492, 0, 589)
  78.  
  79. GuiName.Name = "GuiName"
  80. GuiName.Parent = Main
  81. GuiName.BackgroundColor3 = Color3.new(1, 1, 1)
  82. GuiName.BackgroundTransparency = 1
  83. GuiName.BorderColor3 = Color3.new(1, 1, 1)
  84. GuiName.Position = UDim2.new(0.278455287, 0, 0, 0)
  85. GuiName.Size = UDim2.new(0, 200, 0, 50)
  86. GuiName.Font = Enum.Font.SourceSans
  87. GuiName.Text = "Lucky Gui"
  88. GuiName.TextColor3 = Color3.new(0, 0, 0)
  89. GuiName.TextSize = 25
  90. GuiName.TextStrokeColor3 = Color3.new(1, 1, 1)
  91. GuiName.TextStrokeTransparency = 0
  92.  
  93. CheckFE.Name = "CheckFE"
  94. CheckFE.Parent = Main
  95. CheckFE.BackgroundColor3 = Color3.new(1, 1, 1)
  96. CheckFE.Position = UDim2.new(0.0792682767, 0, 0.724957645, 0)
  97. CheckFE.Size = UDim2.new(0, 169, 0, 50)
  98. CheckFE.Font = Enum.Font.SourceSans
  99. CheckFE.Text = "Check FE"
  100. CheckFE.TextColor3 = Color3.new(0, 0, 0)
  101. CheckFE.TextSize = 14
  102.  
  103. ScriptBoxOpen.Name = "ScriptBoxOpen"
  104. ScriptBoxOpen.Parent = Main
  105. ScriptBoxOpen.BackgroundColor3 = Color3.new(1, 1, 1)
  106. ScriptBoxOpen.Position = UDim2.new(0.0792682767, 0, 0.62139219, 0)
  107. ScriptBoxOpen.Size = UDim2.new(0, 169, 0, 50)
  108. ScriptBoxOpen.Font = Enum.Font.SourceSans
  109. ScriptBoxOpen.Text = "Script Box"
  110. ScriptBoxOpen.TextColor3 = Color3.new(0, 0, 0)
  111. ScriptBoxOpen.TextSize = 14
  112.  
  113. TextLabel.Parent = Main
  114. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  115. TextLabel.BackgroundTransparency = 1
  116. TextLabel.Position = UDim2.new(0.579268277, 0, 0, 0)
  117. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  118. TextLabel.Font = Enum.Font.SourceSans
  119. TextLabel.Text = ""
  120. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  121. TextLabel.TextSize = 14
  122.  
  123. TextLabel_2.Parent = Main
  124. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  125. TextLabel_2.BackgroundTransparency = 1
  126. TextLabel_2.Position = UDim2.new(0.0467479825, 0, 0.53650254, 0)
  127. TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
  128. TextLabel_2.Font = Enum.Font.SourceSans
  129. TextLabel_2.Text = "Extra"
  130. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  131. TextLabel_2.TextSize = 20
  132.  
  133. RainbowBlock.Name = "RainbowBlock"
  134. RainbowBlock.Parent = Main
  135. RainbowBlock.BackgroundColor3 = Color3.new(1, 1, 1)
  136. RainbowBlock.Position = UDim2.new(0.308943093, 0, 0.117147684, 0)
  137. RainbowBlock.Size = UDim2.new(0, 169, 0, 50)
  138. RainbowBlock.Font = Enum.Font.SourceSans
  139. RainbowBlock.Text = "Rainbow Block"
  140. RainbowBlock.TextColor3 = Color3.new(0, 0, 0)
  141. RainbowBlock.TextSize = 14
  142.  
  143. LuckyBlock.Name = "LuckyBlock"
  144. LuckyBlock.Parent = Main
  145. LuckyBlock.BackgroundColor3 = Color3.new(1, 1, 1)
  146. LuckyBlock.Position = UDim2.new(0.308943093, 0, 0.219015256, 0)
  147. LuckyBlock.Size = UDim2.new(0, 169, 0, 50)
  148. LuckyBlock.Font = Enum.Font.SourceSans
  149. LuckyBlock.Text = "Lucky Block"
  150. LuckyBlock.TextColor3 = Color3.new(0, 0, 0)
  151. LuckyBlock.TextSize = 14
  152.  
  153. DiamondBlock.Name = "DiamondBlock"
  154. DiamondBlock.Parent = Main
  155. DiamondBlock.BackgroundColor3 = Color3.new(1, 1, 1)
  156. DiamondBlock.Position = UDim2.new(0.308943093, 0, 0.324278414, 0)
  157. DiamondBlock.Size = UDim2.new(0, 169, 0, 50)
  158. DiamondBlock.Font = Enum.Font.SourceSans
  159. DiamondBlock.Text = "Diamond Block"
  160. DiamondBlock.TextColor3 = Color3.new(0, 0, 0)
  161. DiamondBlock.TextSize = 14
  162.  
  163. SuperBlock.Name = "SuperBlock"
  164. SuperBlock.Parent = Main
  165. SuperBlock.BackgroundColor3 = Color3.new(1, 1, 1)
  166. SuperBlock.Position = UDim2.new(0.308943093, 0, 0.426146001, 0)
  167. SuperBlock.Size = UDim2.new(0, 169, 0, 50)
  168. SuperBlock.Font = Enum.Font.SourceSans
  169. SuperBlock.Text = "Super Block"
  170. SuperBlock.TextColor3 = Color3.new(0, 0, 0)
  171. SuperBlock.TextSize = 14
  172.  
  173. TextLabel_3.Parent = Main
  174. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  175. TextLabel_3.BackgroundTransparency = 1
  176. TextLabel_3.Position = UDim2.new(0.278455287, 0, 0.0441426039, 0)
  177. TextLabel_3.Size = UDim2.new(0, 200, 0, 50)
  178. TextLabel_3.Font = Enum.Font.SourceSans
  179. TextLabel_3.Text = "Spawn Blocks"
  180. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  181. TextLabel_3.TextSize = 20
  182.  
  183. Save.Name = "Save"
  184. Save.Parent = Main
  185. Save.BackgroundColor3 = Color3.new(1, 1, 1)
  186. Save.Position = UDim2.new(0.652438998, 0, 0.809847236, 0)
  187. Save.Size = UDim2.new(0, 138, 0, 50)
  188. Save.Font = Enum.Font.SourceSans
  189. Save.Text = "Save Tools"
  190. Save.TextColor3 = Color3.new(0, 0, 0)
  191. Save.TextSize = 14
  192.  
  193. Load.Name = "Load"
  194. Load.Parent = Main
  195. Load.BackgroundColor3 = Color3.new(1, 1, 1)
  196. Load.Position = UDim2.new(0.652439058, 0, 0.904923618, 0)
  197. Load.Size = UDim2.new(0, 138, 0, 50)
  198. Load.Font = Enum.Font.SourceSans
  199. Load.Text = "Load Tools"
  200. Load.TextColor3 = Color3.new(0, 0, 0)
  201. Load.TextSize = 14
  202.  
  203. ClickTP.Name = "ClickTP"
  204. ClickTP.Parent = Main
  205. ClickTP.BackgroundColor3 = Color3.new(1, 1, 1)
  206. ClickTP.Position = UDim2.new(0.0792682469, 0, 0.830220759, 0)
  207. ClickTP.Size = UDim2.new(0, 169, 0, 50)
  208. ClickTP.Font = Enum.Font.SourceSans
  209. ClickTP.Text = "ClickTP(press e)"
  210. ClickTP.TextColor3 = Color3.new(0, 0, 0)
  211. ClickTP.TextSize = 14
  212.  
  213. TextLabel_4.Parent = Main
  214. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  215. TextLabel_4.BackgroundTransparency = 1
  216. TextLabel_4.Position = UDim2.new(-0.0792683065, 0, 0.947368383, 0)
  217. TextLabel_4.Size = UDim2.new(0, 200, 0, 37)
  218. TextLabel_4.Font = Enum.Font.SourceSans
  219. TextLabel_4.Text = "Credits: BararakSeika"
  220. TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
  221. TextLabel_4.TextSize = 14
  222.  
  223. Close.Name = "Close"
  224. Close.Parent = Main
  225. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  226. Close.Size = UDim2.new(0, 56, 0, 37)
  227. Close.Font = Enum.Font.SourceSans
  228. Close.Text = "Close"
  229. Close.TextColor3 = Color3.new(0, 0, 0)
  230. Close.TextSize = 14
  231.  
  232. OpenFrame.Name = "OpenFrame"
  233. OpenFrame.Parent = LuckyGUI
  234. OpenFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  235. OpenFrame.Position = UDim2.new(0, 0, 0.877750576, 0)
  236. OpenFrame.Size = UDim2.new(0, 100, 0, 100)
  237.  
  238. TextButton_3.Parent = OpenFrame
  239. TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
  240. TextButton_3.Size = UDim2.new(0, 100, 0, 100)
  241. TextButton_3.Font = Enum.Font.SourceSans
  242. TextButton_3.Text = "Open"
  243. TextButton_3.TextColor3 = Color3.new(0, 0, 0)
  244. TextButton_3.TextSize = 14
  245.  
  246. -- Scripts
  247. RainbowBlock.MouseButton1Down:connect(function()
  248. game.ReplicatedStorage.SpawnRainbowBlock:FireServer()
  249. end)
  250.  
  251. LuckyBlock.MouseButton1Down:connect(function()
  252. game.ReplicatedStorage.SpawnLuckyBlock:FireServer()
  253. end)
  254.  
  255. SuperBlock.MouseButton1Down:connect(function()
  256. game.ReplicatedStorage.SpawnSuperBlock:FireServer()
  257. end)
  258.  
  259. DiamondBlock.MouseButton1Down:connect(function()
  260. game.ReplicatedStorage.SpawnDiamondBlock:FireServer()
  261. end)
  262.  
  263. game.Players.LocalPlayer.PlayerGui["Lucky GUI"].ScriptBox.Visible = false
  264.  
  265. Close.MouseButton1Down:connect(function()
  266. game.Players.LocalPlayer.PlayerGui["Lucky GUI"].Main.Visible = false
  267. end)
  268.  
  269. TextButton_3.MouseButton1Down:connect(function()
  270. game.Players.LocalPlayer.PlayerGui["Lucky GUI"].Main.Visible = true
  271. end)
  272.  
  273. ClickTP.MouseButton1Down:connect(function()
  274. plr = game.Players.LocalPlayer
  275. hum = plr.Character.HumanoidRootPart
  276. mouse = plr:GetMouse()
  277. mouse.KeyDown:connect(function(key)
  278. if key == "e" then
  279. if mouse.Target then
  280. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  281. end
  282. end
  283. end)
  284. end)
  285.  
  286. Save.MouseButton1Down:connect(function()
  287. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  288. if (v:IsA("Tool")) then
  289. v.Parent = game.Players.LocalPlayer
  290. end
  291. end
  292. end)
  293.  
  294. Load.MouseButton1Down:connect(function()
  295. for i,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  296. if (v:IsA("Tool")) then
  297. v.Parent = game.Players.LocalPlayer.Backpack
  298. end
  299. end
  300. end)
  301.  
  302. CheckFE.MouseButton1Down:connect(function()
  303. if game.Workspace.FilteringEnabled == true then
  304. TextLabel.Text = "Filtering Enabled"
  305. else
  306. TextLabel.Text = "Filtering Disabled"
  307. end
  308. end)
  309.  
  310. ScriptBoxOpen.MouseButton1Down:connect(function()
  311. game.Players.LocalPlayer.PlayerGui["Lucky GUI"].ScriptBox.Visible = true
  312. end)
  313.  
  314. TextButton_2.MouseButton1Down:connect(function()
  315. loadstring(game.Players.LocalPlayer.PlayerGui["LuckyGUI"].ScriptBox.ScriptHere.Text)()
  316. end)
  317.  
  318. TextButton.MouseButton1Down:connect(function()
  319. game.Players.LocalPlayer.PlayerGui["LuckyGUI"].ScriptBox.ScriptHere.Text = ""
  320. end)
  321. --bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement