Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --for update magnet
- local newGui = Instance.new("ScreenGui")
- local mainFrame = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local autoFarm = Instance.new("TextButton")
- local autoRebirth = Instance.new("TextButton")
- local autoSell = Instance.new("TextButton")
- local credits = Instance.new("TextLabel")
- local topBar = Instance.new("Frame")
- local name = Instance.new("TextLabel")
- --Properties:
- newGui.Name = "newGui"
- newGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- newGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- mainFrame.Name = "mainFrame"
- mainFrame.Parent = newGui
- mainFrame.Active = true
- mainFrame.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
- mainFrame.BorderSizePixel = 0
- mainFrame.Position = UDim2.new(0.212732926, 0, 0.41292876, 0)
- mainFrame.Size = UDim2.new(0, 281, 0, 195)
- close.Name = "close"
- close.Parent = mainFrame
- close.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- close.BorderSizePixel = 0
- close.Position = UDim2.new(0.88967973, 0, 0, 0)
- close.Size = UDim2.new(0, 31, 0, 34)
- close.Font = Enum.Font.SourceSans
- close.Text = "X"
- close.TextColor3 = Color3.new(1, 1, 1)
- close.TextScaled = true
- close.TextSize = 14
- close.TextWrapped = true
- autoFarm.Name = "autoFarm"
- autoFarm.Parent = mainFrame
- autoFarm.BackgroundColor3 = Color3.new(0.862745, 0, 0)
- autoFarm.BackgroundTransparency = 0.40000000596046
- autoFarm.BorderSizePixel = 0
- autoFarm.Position = UDim2.new(0, 0, 0.230769232, 0)
- autoFarm.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
- autoFarm.Font = Enum.Font.SourceSans
- autoFarm.Text = "AUTO FARM: OFF"
- autoFarm.TextColor3 = Color3.new(1, 1, 1)
- autoFarm.TextScaled = true
- autoFarm.TextSize = 14
- autoFarm.TextWrapped = true
- autoRebirth.Name = "autoRebirth"
- autoRebirth.Parent = mainFrame
- autoRebirth.BackgroundColor3 = Color3.new(0.862745, 0, 0)
- autoRebirth.BackgroundTransparency = 0.40000000596046
- autoRebirth.BorderSizePixel = 0
- autoRebirth.Position = UDim2.new(0, 0, 0.708999991, 0)
- autoRebirth.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
- autoRebirth.Font = Enum.Font.SourceSans
- autoRebirth.Text = "AUTO REBIRTH: OFF"
- autoRebirth.TextColor3 = Color3.new(1, 1, 1)
- autoRebirth.TextScaled = true
- autoRebirth.TextSize = 14
- autoRebirth.TextWrapped = true
- autoSell.Name = "autoSell"
- autoSell.Parent = mainFrame
- autoSell.BackgroundColor3 = Color3.new(0.862745, 0, 0)
- autoSell.BackgroundTransparency = 0.40000000596046
- autoSell.BorderSizePixel = 0
- autoSell.Position = UDim2.new(0, 0, 0.469999999, 0)
- autoSell.Size = UDim2.new(0.449999988, 0, 0.200000003, 0)
- autoSell.Font = Enum.Font.SourceSans
- autoSell.Text = "AUTO SELL: OFF"
- autoSell.TextColor3 = Color3.new(1, 1, 1)
- autoSell.TextScaled = true
- autoSell.TextSize = 14
- autoSell.TextWrapped = true
- credits.Name = "credits"
- credits.Parent = mainFrame
- credits.BackgroundColor3 = Color3.new(1, 1, 1)
- credits.BackgroundTransparency = 1
- credits.BorderSizePixel = 0
- credits.Position = UDim2.new(0.479999989, 0, 0.5, 0)
- credits.Size = UDim2.new(0.5, 0, 0.200000003, 0)
- credits.Font = Enum.Font.SourceSansLight
- credits.Text = "Gui Recreated By IxLUCASSxI Yt LucasGaming"
- credits.TextColor3 = Color3.new(1, 1, 1)
- credits.TextScaled = true
- credits.TextSize = 14
- credits.TextWrapped = true
- topBar.Name = "topBar"
- topBar.Parent = newGui
- topBar.Active = true
- topBar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- topBar.BorderSizePixel = 0
- topBar.Draggable = true
- topBar.Position = UDim2.new(0.212732911, 0, 0.41292876, 0)
- topBar.Size = UDim2.new(0, 250, 0, 34)
- topBar.Draggable = true
- name.Name = "name"
- name.Parent = topBar
- name.BackgroundColor3 = Color3.new(1, 1, 1)
- name.BackgroundTransparency = 1
- name.Size = UDim2.new(1, 0, 1, 0)
- name.Font = Enum.Font.SourceSansLight
- name.Text = "Magnet Simulator"
- name.TextColor3 = Color3.new(1, 1, 1)
- name.TextScaled = true
- name.TextSize = 14
- name.TextWrapped = true
- --// Scripts
- local reqGrab = game:GetService("ReplicatedStorage").Events.MagnetEvents['requestGrab']
- local renderStep = game:GetService("RunService").RenderStepped
- local farmToggle = false
- autoFarm.MouseButton1Click:Connect(function()
- if farmToggle == false then
- farmToggle = true
- autoFarm.Text = "AUTO FARM: ON"
- autoFarm.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
- local tool = "Pink Dual Long Power Magnets"-- change to your Magnet Name
- while renderStep:wait() do
- if farmToggle == false then break end
- for i = 1, 10 do
- reqGrab:FireServer("Candy1", game.ReplicatedStorage.Tools[tool])--Change to Candy1 or 380000000
- end
- end
- elseif farmToggle then
- farmToggle = false
- autoFarm.Text = "AUTO FARM: OFF"
- autoFarm.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
- end
- end)
- local sellToggle = false
- autoSell.MouseButton1Click:Connect(function()
- local plr = game.Players.LocalPlayer
- local char = plr.Character.HumanoidRootPart
- if sellToggle == false then
- sellToggle = true
- autoSell.Text = "AUTO SELL: ON"
- autoSell.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
- while renderStep:wait() do
- if sellToggle == false then break end
- for i = 1, 10 do
- workspace.Rings.Sellx2.CanCollide = false
- workspace.Rings.Sellx2.Transparency = 1
- workspace.Rings.Sellx2.CFrame = char.CFrame --+ Vector3.new(0, math.random(-1, 1), 0)
- end
- end
- wait(0.1)
- elseif sellToggle == true then
- sellToggle = false
- autoSell.Text = "AUTO SELL: OFF"
- autoSell.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
- workspace.Rings.Sellx2.CanCollide = true
- workspace.Rings.Sellx2.Transparency = 0
- workspace.Rings.Sellx2.CFrame = CFrame.new(-423.296997, 1.41699982, -849.867981, 0.766061246, -0, -0.642767608, 0, 1, -0, 0.642767608, 0, 0.766061246)
- end
- end)
- local rebirthToggle = false
- autoRebirth.MouseButton1Click:Connect(function()
- if rebirthToggle == false then
- rebirthToggle = true
- autoRebirth.Text = "AUTO REBIRTH: ON"
- autoRebirth.BackgroundColor3 = Color3.fromRGB(0, 220, 0)
- while renderStep:wait() do
- if rebirthToggle == false then break end
- for i = 1, 10 do
- wait(10)
- game.ReplicatedStorage.RebirthEvents.requestRebirth:FireServer(100000)
- end
- end
- elseif rebirthToggle == true then
- rebirthToggle = false
- autoRebirth.Text = "AUTO REBIRTH: OFF"
- autoRebirth.BackgroundColor3 = Color3.fromRGB(220, 0, 0)
- end
- end)
- close.MouseButton1Click:Connect(function()
- newGui:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement