Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Credits: Brianops1 ( Script Founder ) , Anwarun ( Gui Maker )
- -- Objects
- plr = game:GetService('Players').LocalPlayer
- Bocah = game.Players.LocalPlayer.Character.HumanoidRootPart
- local Magnet = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Page2 = Instance.new("TextButton")
- local Tutup = Instance.new("TextButton")
- local Tunda = Instance.new("TextButton")
- local Duit = Instance.new("TextButton")
- local Jual = Instance.new("TextButton")
- local Rebirth = Instance.new("TextButton")
- local Credits = Instance.new("TextLabel")
- local Auto = Instance.new("Frame")
- local Tittle2 = Instance.new("TextLabel")
- local Page1 = Instance.new("TextButton")
- local NamaT = Instance.new("TextBox")
- local BuyT = Instance.new("TextButton")
- local EquipT = Instance.new("TextButton")
- local NamaM = Instance.new("TextBox")
- local BuyM = Instance.new("TextButton")
- local EquipM = Instance.new("TextButton")
- local Rebirth_2 = Instance.new("TextButton")
- local NamaE = Instance.new("TextBox")
- Ke2 = 0
- Ke1 = 0
- BuyEgg = 0
- Farm = 0
- Sell = 0
- ReBith = 0
- TundaF = 0
- BuyTas = 0
- BuyMagnet = 0
- PakeTas = 0
- PakeMagnet = 0
- -- Properties
- Magnet.Name = "Magnet"
- Magnet.Parent = game.CoreGui
- Frame.Parent = Magnet
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderColor3 = Color3.new(0.333333, 1, 0)
- Frame.BorderSizePixel = 4
- Frame.Position = UDim2.new(0.34290272, 0, 0.196039602, 0)
- Frame.Size = UDim2.new(0, 365, 0, 206)
- Frame.Draggable = true
- TFrame.Name = "TFrame"
- TFrame.Parent = Frame
- TFrame.BackgroundColor3 = Color3.new(1, 1, 1)
- TFrame.BorderColor3 = Color3.new(0.333333, 1, 0.498039)
- TFrame.BorderSizePixel = 4
- TFrame.Size = UDim2.new(0, 365, 0, 24)
- Title.Name = "Title"
- Title.Parent = TFrame
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BorderSizePixel = 0
- Title.Size = UDim2.new(0, 365, 0, 24)
- Title.Font = Enum.Font.Garamond
- Title.Text = "Magnet Simulator Gui"
- Title.TextColor3 = Color3.new(0.333333, 1, 0)
- Title.TextSize = 25
- Page2.Name = "Page2"
- Page2.Parent = TFrame
- Page2.BackgroundColor3 = Color3.new(1, 0, 0)
- Page2.BorderSizePixel = 0
- Page2.Size = UDim2.new(0, 33, 0, 24)
- Page2.Font = Enum.Font.GothamBlack
- Page2.Text = "<"
- Page2.TextColor3 = Color3.new(1, 1, 1)
- Page2.TextSize = 18
- Tutup.Name = "Tutup"
- Tutup.Parent = TFrame
- Tutup.BackgroundColor3 = Color3.new(1, 0, 0)
- Tutup.BorderSizePixel = 0
- Tutup.Position = UDim2.new(0.909589052, 0, 0, 0)
- Tutup.Size = UDim2.new(0, 33, 0, 24)
- Tutup.Font = Enum.Font.GothamBlack
- Tutup.Text = "X"
- Tutup.TextColor3 = Color3.new(1, 1, 1)
- Tutup.TextSize = 18
- Tunda.Name = "Tunda"
- Tunda.Parent = TFrame
- Tunda.BackgroundColor3 = Color3.new(0, 0, 0)
- Tunda.BorderSizePixel = 0
- Tunda.Position = UDim2.new(0.819178104, 0, 0, 0)
- Tunda.Size = UDim2.new(0, 33, 0, 24)
- Tunda.Font = Enum.Font.GothamBlack
- Tunda.Text = "-"
- Tunda.TextColor3 = Color3.new(1, 1, 1)
- Tunda.TextSize = 18
- Duit.Name = "Duit"
- Duit.Parent = Frame
- Duit.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Duit.BorderSizePixel = 0
- Duit.Position = UDim2.new(0.0410958901, 0, 0.424435794, 0)
- Duit.Size = UDim2.new(0, 155, 0, 31)
- Duit.Font = Enum.Font.GothamBlack
- Duit.Text = "Auto Farm OFF"
- Duit.TextColor3 = Color3.new(1, 1, 1)
- Duit.TextSize = 18
- Jual.Name = "Jual"
- Jual.Parent = Frame
- Jual.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Jual.BorderSizePixel = 0
- Jual.Position = UDim2.new(0.534246564, 0, 0.424435794, 0)
- Jual.Size = UDim2.new(0, 155, 0, 31)
- Jual.Font = Enum.Font.GothamBlack
- Jual.Text = "Auto Sell OFF"
- Jual.TextColor3 = Color3.new(1, 1, 1)
- Jual.TextSize = 18
- Rebirth.Name = "Rebirth"
- Rebirth.Parent = Frame
- Rebirth.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Rebirth.BorderSizePixel = 0
- Rebirth.Position = UDim2.new(0.0410958901, 0, 0.610804915, 0)
- Rebirth.Size = UDim2.new(0, 155, 0, 31)
- Rebirth.Font = Enum.Font.GothamBlack
- Rebirth.Text = "Auto Rebith OFF"
- Rebirth.TextColor3 = Color3.new(1, 1, 1)
- Rebirth.TextSize = 18
- Credits.Name = "Credits"
- Credits.Parent = Frame
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.BorderColor3 = Color3.new(0.333333, 1, 0)
- Credits.BorderSizePixel = 4
- Credits.Position = UDim2.new(0, 0, 0.857151687, 0)
- Credits.Size = UDim2.new(0, 365, 0, 29)
- Credits.Font = Enum.Font.Garamond
- Credits.Text = "Credits : brianops1, Anwarun"
- Credits.TextColor3 = Color3.new(0, 0, 0)
- Credits.TextSize = 25
- Auto.Name = "Auto"
- Auto.Parent = Frame
- Auto.BackgroundColor3 = Color3.new(1, 1, 1)
- Auto.BorderColor3 = Color3.new(0.333333, 1, 0)
- Auto.BorderSizePixel = 4
- Auto.Position = UDim2.new(-0.520547926, 0, 0, 0)
- Auto.Size = UDim2.new(0, 176, 0, 267)
- Auto.Visible = false
- Tittle2.Name = "Tittle2"
- Tittle2.Parent = Auto
- Tittle2.BackgroundColor3 = Color3.new(1, 1, 1)
- Tittle2.BorderColor3 = Color3.new(0.333333, 1, 0)
- Tittle2.BorderSizePixel = 4
- Tittle2.Size = UDim2.new(0, 176, 0, 31)
- Tittle2.Font = Enum.Font.Garamond
- Tittle2.Text = "Auto Equip / Buy"
- Tittle2.TextColor3 = Color3.new(0.333333, 1, 0)
- Tittle2.TextSize = 23
- Page1.Name = "Page1"
- Page1.Parent = Auto
- Page1.BackgroundColor3 = Color3.new(1, 0, 0)
- Page1.BorderSizePixel = 0
- Page1.Position = UDim2.new(0.886363626, 0, 0, 0)
- Page1.Size = UDim2.new(0, 20, 0, 31)
- Page1.Font = Enum.Font.GothamBlack
- Page1.Text = ">"
- Page1.TextColor3 = Color3.new(1, 1, 1)
- Page1.TextSize = 18
- NamaT.Name = "NamaT"
- NamaT.Parent = Auto
- NamaT.BackgroundColor3 = Color3.new(1, 1, 1)
- NamaT.BorderColor3 = Color3.new(0.333333, 1, 0)
- NamaT.BorderSizePixel = 3
- NamaT.Position = UDim2.new(0.0795454532, 0, 0.161048695, 0)
- NamaT.Size = UDim2.new(0, 147, 0, 25)
- NamaT.Font = Enum.Font.GothamBold
- NamaT.Text = "Backpack Name"
- NamaT.TextColor3 = Color3.new(0.333333, 1, 0)
- NamaT.TextSize = 14
- BuyT.Name = "BuyT"
- BuyT.Parent = Auto
- BuyT.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- BuyT.BorderSizePixel = 0
- BuyT.Position = UDim2.new(0.0795454532, 0, 0.292134821, 0)
- BuyT.Size = UDim2.new(0, 147, 0, 23)
- BuyT.Font = Enum.Font.GothamBlack
- BuyT.Text = "Buy BackPack"
- BuyT.TextColor3 = Color3.new(1, 1, 1)
- BuyT.TextSize = 18
- EquipT.Name = "EquipT"
- EquipT.Parent = Auto
- EquipT.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- EquipT.BorderSizePixel = 0
- EquipT.Position = UDim2.new(0.0795454532, 0, 0.400749058, 0)
- EquipT.Size = UDim2.new(0, 147, 0, 23)
- EquipT.Font = Enum.Font.GothamBlack
- EquipT.Text = "Equip BackPack"
- EquipT.TextColor3 = Color3.new(1, 1, 1)
- EquipT.TextSize = 18
- NamaM.Name = "NamaM"
- NamaM.Parent = Auto
- NamaM.BackgroundColor3 = Color3.new(1, 1, 1)
- NamaM.BorderColor3 = Color3.new(0.333333, 1, 0)
- NamaM.BorderSizePixel = 3
- NamaM.Position = UDim2.new(0.0795454532, 0, 0.595505595, 0)
- NamaM.Size = UDim2.new(0, 147, 0, 25)
- NamaM.Font = Enum.Font.GothamBold
- NamaM.Text = "Magnet Name"
- NamaM.TextColor3 = Color3.new(0.333333, 1, 0)
- NamaM.TextSize = 14
- BuyM.Name = "BuyM"
- BuyM.Parent = Auto
- BuyM.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- BuyM.BorderSizePixel = 0
- BuyM.Position = UDim2.new(0.0795454532, 0, 0.749063611, 0)
- BuyM.Size = UDim2.new(0, 147, 0, 23)
- BuyM.Font = Enum.Font.GothamBlack
- BuyM.Text = "Buy Magnet"
- BuyM.TextColor3 = Color3.new(1, 1, 1)
- BuyM.TextSize = 18
- EquipM.Name = "EquipM"
- EquipM.Parent = Auto
- EquipM.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- EquipM.BorderSizePixel = 0
- EquipM.Position = UDim2.new(0.0795454532, 0, 0.868913829, 0)
- EquipM.Size = UDim2.new(0, 147, 0, 23)
- EquipM.Font = Enum.Font.GothamBlack
- EquipM.Text = "Equip Magnet"
- EquipM.TextColor3 = Color3.new(1, 1, 1)
- EquipM.TextSize = 18
- Rebirth_2.Name = "Rebirth"
- Rebirth_2.Parent = Frame
- Rebirth_2.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Rebirth_2.BorderSizePixel = 0
- Rebirth_2.Position = UDim2.new(0.534246564, 0, 0.610804915, 0)
- Rebirth_2.Size = UDim2.new(0, 155, 0, 31)
- Rebirth_2.Font = Enum.Font.GothamBlack
- Rebirth_2.Text = "Buy Egg OFF"
- Rebirth_2.TextColor3 = Color3.new(1, 1, 1)
- Rebirth_2.TextSize = 18
- NamaE.Name = "NamaE"
- NamaE.Parent = Frame
- NamaE.BackgroundColor3 = Color3.new(1, 1, 1)
- NamaE.BorderColor3 = Color3.new(0.333333, 1, 0)
- NamaE.BorderSizePixel = 4
- NamaE.Position = UDim2.new(0.120547943, 0, 0.18974793, 0)
- NamaE.Size = UDim2.new(0, 276, 0, 29)
- NamaE.Font = Enum.Font.GothamBold
- NamaE.Text = "Egg Name"
- NamaE.TextColor3 = Color3.new(0.333333, 1, 0)
- NamaE.TextSize = 20
- -- Script
- Tutup.MouseButton1Click:connect(function()
- Magnet:Destroy()
- end)
- Tunda.MouseButton1Click:connect(function()
- if TundaF == 1 then
- TundaF = 0
- Frame.Size = UDim2.new(0, 365, 0, 206)
- Duit.Visible = true
- Jual.Visible = true
- Rebirth.Visible = true
- Rebirth_2.Visible = true
- NamaE.Visible = true
- Credits.Visible = true
- else
- TundaF = 1
- Frame.Size = UDim2.new(0, 365, 0, 24)
- Duit.Visible = false
- Jual.Visible = false
- Rebirth.Visible = false
- Rebirth_2.Visible = false
- NamaE.Visible = false
- Credits.Visible = false
- end
- end)
- Page2.MouseButton1Click:connect(function()
- if Ke2 == 1 then
- Ke2 = 0
- else
- Ke2 = 1
- Auto.Visible = true
- end
- end)
- Page1.MouseButton1Click:connect(function()
- if Ke1 == 1 then
- Ke1 = 0
- else
- Ke1 = 1
- Auto.Visible = false
- end
- end)
- Duit.MouseButton1Click:connect(function()
- if Farm == 1 then
- Farm = 0
- Duit.Text = "Auto Farm OFF"
- Active = false
- else
- Farm = 1
- Active = true
- Duit.Text = "Auto Farm ON"
- AutoDuit()
- end
- end)
- Awal = Bocah.CFrame
- Jual.MouseButton1Click:connect(function()
- if Sell == 1 then
- Sell = 0
- Active2 = false
- Jual.Text = "Auto Sell OFF"
- else
- Sell = 1
- Active2 = true
- Jual.Text = "Auto Sell ON"
- if Active2 == true then
- while Active2 do
- game:GetService('RunService').Stepped:wait()
- Bocah.CFrame = CFrame.new(136.73712158203, 13.362461090088, -52.908908843994)
- wait()
- Bocah.CFrame = CFrame.new(136.83712158203, 13.362461090088, -52.908908843994)
- wait()
- end
- Bocah.CFrame = Awal
- end
- end
- end)
- Rebirth.MouseButton1Click:connect(function()
- if ReBith == 1 then
- ReBith = 0
- Active3 = false
- Rebirth.Text = "Auto Rebith OFF"
- else
- ReBith = 1
- Active3 = true
- Rebirth.Text = "Auto REbith ON"
- if Active3 == true then
- while Active3 do
- wait()
- local Rebit = game:GetService("ReplicatedStorage").RebirthEvents.requestRebirth
- Rebit:FireServer()
- end
- end
- end
- end)
- BuyT.MouseButton1Click:connect(function()
- if BuyTas == 1 then
- BuyTas = 0
- Active4 = false
- BuyT.Text = "Buy BackPack OFF"
- BuyT.TextSize = 15
- else
- BuyTas = 1
- Active4 = true
- BuyT.Text = "Equip BackPack ON"
- BuyT.TextSize = 15
- if Active4 == true then
- local A_1 = NamaT.Text
- local A_2 = "Backpack"
- local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestBuy
- Event:FireServer(A_1, A_2)
- end
- end
- end)
- BuyM.MouseButton1Click:connect(function()
- if BuyMagnet == 1 then
- BuyMagnet = 0
- Active5 = false
- BuyM.Text = "Buy Magnet OFF"
- BuyM.TextSize = 15
- else
- BuyMagnet = 1
- Active5 = true
- BuyM.Text = "Equip Magnet ON"
- BuyM.TextSize = 15
- if Active5 == true then
- local A_1 = NamaM.Text
- local A_2 = "Backpack"
- local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestBuy
- Event:FireServer(A_1, A_2)
- end
- end
- end)
- EquipT.MouseButton1Click:connect(function()
- if PakeTas == 1 then
- PakeTas = 0
- Active6 = false
- EquipT.Text = "Equip BackPack OFF"
- EquipT.TextSize = 15
- else
- PakeTas = 1
- Active6 = true
- EquipT.Text = "Equip BackPack ON"
- EquipT.TextSize = 15
- if Active6 == true then
- local A_1 = NamaT.Text
- local A_2 = "Equip"
- local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
- Event:FireServer(A_1, A_2)
- end
- end
- end)
- EquipM.MouseButton1Click:connect(function()
- if PakeMagnet == 1 then
- PakeMagnet = 0
- Active7 = false
- EquipM.Text = "Equip Magnet OFF"
- EquipM.TextSize = 15
- else
- PakeMagnet = 1
- Active7 = true
- EquipM.Text = "Equip Magnet ON"
- EquipM.TextSize = 15
- if Active7 == true then
- local A_1 = NamaM.Text
- local A_2 = "Equip"
- local Event = game:GetService("ReplicatedStorage").Events.ShopEvents.requestEquip
- Event:FireServer(A_1, A_2)
- end
- end
- end)
- Rebirth_2.MouseButton1Click:connect(function()
- if BuyEgg == 1 then
- BuyEgg = 0
- Active8 = false
- Rebirth_2.Text = "Buy Egg OFF"
- else
- BuyEgg = 1
- Active8 = true
- Rebirth_2.Text = "Buy Egg ON"
- if Active8 == true then
- while Active8 do
- wait()
- game.ReplicatedStorage.PetEvents.requesthatch:FireServer(NamaE.Text)
- end
- end
- end
- end)
- -- Function
- Active = false
- Active2 = false
- Active3 = false
- Active4 = false
- Active5 = false
- Active6 = false
- Active7 = false
- Active8 = false
- function AutoDuit()
- if Active == true then
- while Active do
- game:GetService('RunService').Stepped:wait()
- for i = 1,25 do
- local tool = game.Workspace[plr.Name]:FindFirstChildOfClass("Tool")
- if tool then
- local A_1 = "8250"
- local A_2 = tool
- local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
- Event:FireServer(A_1, A_2)
- else
- local tool = plr.Backpack:FindFirstChildOfClass("Tool")
- if tool then
- local A_1 = "8250"
- local A_2 = tool
- local Event = game:GetService("ReplicatedStorage").Events.MagnetEvents.requestGrab
- Event:FireServer(A_1, A_2)
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment