Lover712

Magnet Simulator gui

Jan 16th, 2019
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.09 KB | None | 0 0
  1. Bacot1 = 0
  2. Bacot2 = 0
  3. Bacot3 = 0
  4. Bacot4 = 0
  5.  
  6.  
  7. -- Objects
  8.  
  9. plr = game:GetService('Players').LocalPlayer
  10. Bocah = game.Players.LocalPlayer.Character.HumanoidRootPart
  11. local Magnet = Instance.new("ScreenGui")
  12. local Frame = Instance.new("Frame")
  13. local Ar = Instance.new("TextButton")
  14. local Credit = Instance.new("TextLabel")
  15. local Af = Instance.new("TextButton")
  16. local NamaEgg = Instance.new("TextBox")
  17. local As = Instance.new("TextButton")
  18. local Ab = Instance.new("TextButton")
  19. local PetName = Instance.new("TextBox")
  20. local Dupe = Instance.new("TextButton")
  21. local Jumlah = Instance.new("TextBox")
  22. local title = Instance.new("TextLabel")
  23. local X = Instance.new("TextButton")
  24.  
  25. -- Properties
  26.  
  27. Magnet.Name = "Magnet"
  28. Magnet.Parent = game.CoreGui
  29.  
  30. Frame.Archivable = false
  31. Frame.Parent = Magnet
  32. Frame.Active = true
  33. Frame.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  34. Frame.BorderColor3 = Color3.new(0, 0.666667, 1)
  35. Frame.BorderSizePixel = 5
  36. Frame.Position = UDim2.new(0.183547065, 0, 0.191689655, 0)
  37. Frame.Size = UDim2.new(0, 422, 0, 320)
  38. Frame.Draggable = true
  39.  
  40. Ar.Name = "Ar"
  41. Ar.Parent = Frame
  42. Ar.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  43. Ar.BorderColor3 = Color3.new(0, 0.666667, 1)
  44. Ar.BorderSizePixel = 5
  45. Ar.Position = UDim2.new(0.0664502159, 0, 0.304287851, 0)
  46. Ar.Size = UDim2.new(0, 142, 0, 44)
  47. Ar.Font = Enum.Font.SciFi
  48. Ar.Text = "Auto Rebirth 100"
  49. Ar.TextColor3 = Color3.new(0.666667, 0, 0)
  50. Ar.TextScaled = true
  51. Ar.TextSize = 14
  52. Ar.TextWrapped = true
  53.  
  54. Credit.Name = "Credit"
  55. Credit.Parent = Frame
  56. Credit.BackgroundColor3 = Color3.new(1, 0, 0)
  57. Credit.BackgroundTransparency = 1
  58. Credit.Position = UDim2.new(0.113744088, 0, 1.02499986, 0)
  59. Credit.Size = UDim2.new(0, 200, 0, 24)
  60. Credit.Font = Enum.Font.GothamBold
  61. Credit.Text = "Credits: Script Maker, ScRipt HunTer"
  62. Credit.TextColor3 = Color3.new(1, 0, 0)
  63. Credit.TextSize = 20
  64. Credit.TextXAlignment = Enum.TextXAlignment.Left
  65. Credit.TextYAlignment = Enum.TextYAlignment.Top
  66.  
  67. Af.Name = "Af"
  68. Af.Parent = Frame
  69. Af.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  70. Af.BorderColor3 = Color3.new(0, 0.666667, 1)
  71. Af.BorderSizePixel = 5
  72. Af.Position = UDim2.new(0.60199523, 0, 0.304287851, 0)
  73. Af.Size = UDim2.new(0, 142, 0, 44)
  74. Af.Font = Enum.Font.SciFi
  75. Af.Text = "AutoFarm"
  76. Af.TextColor3 = Color3.new(0.666667, 0, 0)
  77. Af.TextScaled = true
  78. Af.TextSize = 14
  79. Af.TextWrapped = true
  80.  
  81. NamaEgg.Name = "NamaEgg"
  82. NamaEgg.Parent = Frame
  83. NamaEgg.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  84. NamaEgg.BorderColor3 = Color3.new(0, 0.666667, 1)
  85. NamaEgg.BorderSizePixel = 5
  86. NamaEgg.Position = UDim2.new(0.225118488, 0, 0.065624997, 0)
  87. NamaEgg.Size = UDim2.new(0, 233, 0, 50)
  88. NamaEgg.Font = Enum.Font.SciFi
  89. NamaEgg.Text = "Egg Name"
  90. NamaEgg.TextColor3 = Color3.new(0.666667, 0, 0)
  91. NamaEgg.TextScaled = true
  92. NamaEgg.TextSize = 14
  93. NamaEgg.TextWrapped = true
  94.  
  95. As.Name = "As"
  96. As.Parent = Frame
  97. As.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  98. As.BorderColor3 = Color3.new(0, 0.666667, 1)
  99. As.BorderSizePixel = 5
  100. As.Position = UDim2.new(0.0664502159, 0, 0.529287815, 0)
  101. As.Size = UDim2.new(0, 142, 0, 44)
  102. As.Font = Enum.Font.SciFi
  103. As.Text = "AutoSell"
  104. As.TextColor3 = Color3.new(0.666667, 0, 0)
  105. As.TextScaled = true
  106. As.TextSize = 14
  107. As.TextWrapped = true
  108.  
  109. Ab.Name = "Ab"
  110. Ab.Parent = Frame
  111. Ab.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  112. Ab.BorderColor3 = Color3.new(0, 0.666667, 1)
  113. Ab.BorderSizePixel = 5
  114. Ab.Position = UDim2.new(0.601995289, 0, 0.529287815, 0)
  115. Ab.Size = UDim2.new(0, 142, 0, 44)
  116. Ab.Font = Enum.Font.SciFi
  117. Ab.Text = "Auto Buy Egg"
  118. Ab.TextColor3 = Color3.new(0.666667, 0, 0)
  119. Ab.TextScaled = true
  120. Ab.TextSize = 14
  121. Ab.TextWrapped = true
  122.  
  123. PetName.Name = "PetName"
  124. PetName.Parent = Frame
  125. PetName.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  126. PetName.BorderColor3 = Color3.new(0, 0.666667, 1)
  127. PetName.BorderSizePixel = 5
  128. PetName.Position = UDim2.new(0.0663507134, 0, 0.721875012, 0)
  129. PetName.Size = UDim2.new(0, 185, 0, 27)
  130. PetName.Font = Enum.Font.SciFi
  131. PetName.Text = "Pet name here"
  132. PetName.TextColor3 = Color3.new(0.666667, 0, 0)
  133. PetName.TextScaled = true
  134. PetName.TextSize = 14
  135. PetName.TextWrapped = true
  136.  
  137. Dupe.Name = "Dupe"
  138. Dupe.Parent = Frame
  139. Dupe.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  140. Dupe.BorderColor3 = Color3.new(0, 0.666667, 1)
  141. Dupe.BorderSizePixel = 5
  142. Dupe.Position = UDim2.new(0.56881994, 0, 0.773037791, 0)
  143. Dupe.Size = UDim2.new(0, 142, 0, 44)
  144. Dupe.Font = Enum.Font.SciFi
  145. Dupe.Text = "Dupe Pet"
  146. Dupe.TextColor3 = Color3.new(0.666667, 0, 0)
  147. Dupe.TextScaled = true
  148. Dupe.TextSize = 14
  149. Dupe.TextWrapped = true
  150.  
  151. Jumlah.Name = "Jumlah"
  152. Jumlah.Parent = Frame
  153. Jumlah.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  154. Jumlah.BorderColor3 = Color3.new(0, 0.666667, 1)
  155. Jumlah.BorderSizePixel = 5
  156. Jumlah.Position = UDim2.new(0.0663507134, 0, 0.875, 0)
  157. Jumlah.Size = UDim2.new(0, 185, 0, 27)
  158. Jumlah.Font = Enum.Font.SciFi
  159. Jumlah.Text = "How Many You Want?"
  160. Jumlah.TextColor3 = Color3.new(0.666667, 0, 0)
  161. Jumlah.TextScaled = true
  162. Jumlah.TextSize = 14
  163. Jumlah.TextWrapped = true
  164.  
  165. title.Name = "title"
  166. title.Parent = Frame
  167. title.BackgroundColor3 = Color3.new(0, 0, 0)
  168. title.BorderColor3 = Color3.new(0, 0.666667, 1)
  169. title.BorderSizePixel = 5
  170. title.Position = UDim2.new(-0.0253578648, 0, -0.0338308662, 0)
  171. title.Size = UDim2.new(0, 443, 0, 40)
  172. title.Font = Enum.Font.SciFi
  173. title.Text = "MAGNET SIMULATOR GUI"
  174. title.TextColor3 = Color3.new(0.666667, 0, 0)
  175. title.TextSize = 25
  176. title.TextWrapped = true
  177.  
  178. X.Name = "X"
  179. X.Parent = title
  180. X.BackgroundColor3 = Color3.new(0, 0, 0)
  181. X.BorderColor3 = Color3.new(0, 0.666667, 1)
  182. X.BorderSizePixel = 5
  183. X.Position = UDim2.new(0.899318576, 0, -0.0343750007, 0)
  184. X.Size = UDim2.new(0, 42, 0, 41)
  185. X.Font = Enum.Font.SciFi
  186. X.Text = "X"
  187. X.TextColor3 = Color3.new(0.666667, 0, 0)
  188. X.TextScaled = true
  189. X.TextSize = 14
  190. X.TextWrapped = true
  191.  
  192. -- Script
  193.  
  194. Ar.MouseButton1Click:connect(function()
  195.     if Bacot1 == 1 then
  196.         Bacot1 = 0
  197.         Fiture1 = false
  198.         Ar.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  199.     else
  200.         Bacot1 = 1
  201.         Fiture1 = true
  202.         Ar.BackgroundColor3 = Color3.new(0, 255, 0)
  203.         if Fiture1 == true then
  204.               while Fiture1 do
  205.               wait(5)
  206.               game:GetService("ReplicatedStorage").RebirthEvents.requestRebirthBoard:FireServer("5_100Rebirths")
  207.           end
  208.                end
  209.         end
  210. end)
  211.  
  212. Af.MouseButton1Click:connect(function()
  213.     if Bacot2 == 1 then
  214.         Bacot2 = 0
  215.         Fiture2 = false
  216.         Af.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  217.     else
  218.         Bacot2 = 1
  219.         Fiture2 = true
  220.         Af.BackgroundColor3 = Color3.new(0, 255, 0)
  221.         farm()
  222.     end
  223. end)
  224.  
  225. Awal = Bocah.CFrame
  226. As.MouseButton1Click:connect(function()
  227.     if Bacot3 == 1 then
  228.         Bacot3 = 0
  229.         Fiture3 = false
  230.         As.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  231.     else
  232.         Bacot3 = 1
  233.         Fiture3 = true
  234.         As.BackgroundColor3 = Color3.new(0, 255, 0)
  235.         if Fiture3 == true then
  236.             while Fiture3 do
  237.                 game:GetService('RunService').Stepped:wait()
  238.                 Bocah.CFrame = CFrame.new(136.73712158203, 13.362461090088, -52.908908843994)
  239.                wait()
  240.                Bocah.CFrame = CFrame.new(136.83712158203, 13.362461090088, -52.908908843994)
  241.                wait()
  242.             end
  243.             Bocah.CFrame = Awal
  244.             end
  245.         end
  246.  
  247. end)
  248.  
  249. Ab.MouseButton1Click:connect(function()
  250.     if Bacot4 == 1 then
  251.         Bacot4 = 0
  252.         Fiture4 = false
  253.         Ab.BackgroundColor3 = Color3.new(0.776471, 0.784314, 0.772549)
  254.     else
  255.         Bacot4 = 1
  256.         Fiture4 = true
  257.         Ab.BackgroundColor3 = Color3.new(0, 255, 0)
  258.             if Fiture4 == true then
  259.         while Fiture4 do
  260.             wait()
  261.                     game.ReplicatedStorage.PetEvents.requesthatch:FireServer(NamaEgg.Text)
  262.        end
  263.     end
  264.     end
  265. end)
  266.  
  267. Dupe.MouseButton1Click:connect(function()
  268. local A_1   = PetName.Text
  269. local A_2   = -Jumlah.Text
  270. local Event = game:GetService("ReplicatedStorage").PetEvents.requestDelete
  271. Event:FireServer(A_1, A_2)
  272. end)
  273.  
  274. X.MouseButton1Click:connect(function()
  275.     Magnet:Destroy()
  276. end)
  277.  
  278. -- Pls Dont Edit THis ;)
  279. Fiture1 = false
  280. Fiture2 = false
  281. Fiture3 = false
  282. Fiture4 = false
  283.  
  284. function farm()
  285.        if Fiture2 == true then
  286. while Fiture2 do
  287. game:GetService('RunService').Stepped:wait()
  288. for i = 1,25 do
  289. local tool = game.ReplicatedStorage.Tools["Galaxy Rebirth Magnet"]
  290. if tool then
  291.    local A_1 = "72000"
  292. local A_2 = tool
  293. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  294. Event:FireServer(A_1, A_2)
  295. else
  296. local tool = game.ReplicatedStorage.Tools["Galaxy Rebirth Magnet"]
  297. if tool then
  298.    local A_1 = "72000"
  299. local A_2   = tool
  300. local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
  301. Event:FireServer(A_1, A_2)
  302. end
  303. end
  304. end
  305. end
  306.    end
  307. end
  308.  
  309. if Credit.Text == "Credits: Script Maker, ScRipt HunTer" then
  310.     Magnet.Parent = game.CoreGui
  311. else
  312.     Magnet:Destroy()
  313. end
Advertisement
Add Comment
Please, Sign In to add comment