Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The Game Link : https://www.roblox.com/games/2846607892/Sugar-Simulator
- Discord Link : https://discordapp.com/channels/686554761901768721/686664520596324435
- ---OP GUI
- local storage = game:GetService("ReplicatedStorage")
- local player = game:GetService("Players").LocalPlayer
- local character = player.Character
- local playerGui = player:FindFirstChild("PlayerGui")
- local mouse = player:GetMouse()
- local realm = "Starter"
- local autoTp = false
- local autoClick = false
- local teleportLocations = {}
- teleportLocations[1] = {"Shop1", 221, 30, -740}
- teleportLocations[2] = {"Sell", 515, 29, -134}
- teleportLocations[3] = {"Starter", 166, 30, -718}
- teleportLocations[4] = {"Candyland", 57, 30, 25}
- teleportLocations[5] = {"Beach", 775, 37, -742}
- teleportLocations[6] = {"Snowtime", -393, 30, -473}
- teleportLocations[7] = {"Forest", 527, 29, -151}
- local realms = {}
- realms[1] = "Starter"
- realms[2] = "Candyland"
- realms[3] = "Beach"
- realms[4] = "Snowtime"
- realms[5] = "Forest"
- local sells = {}
- sells["Starter"] = Vector3.new(180, 30, -757)
- sells["Candyland"] = Vector3.new(35, 30, 12)
- sells["Beach"] = Vector3.new(750, 37, -745)
- sells["Snowtime"] = Vector3.new(407, 30, -500)
- sells["Forest"] = Vector3.new(515, 29, -134)
- for i, v in pairs(playerGui:GetChildren()) do
- if v.Name == "Cow's_Sugar_Simulator_Gui" then
- v:Destroy()
- end
- end
- local screenGui = Instance.new("ScreenGui", playerGui)
- screenGui.Name = "Cow's_Sugar_Simulator_Gui"
- function createGui()
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(0, -150, 0, 0)
- frame.Position = UDim2.new(1, -5, 0.4, 0)
- frame.BackgroundTransparency = 1
- local teleportButton = Instance.new("TextButton", frame)
- teleportButton.Size = UDim2.new(1, 0, 0, 36)
- teleportButton.Position = UDim2.new(0, 0, 0, 0)
- teleportButton.Text = "Teleports"
- teleportButton.Font = Enum.Font.SourceSansBold
- teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- teleportButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- teleportButton.TextScaled = true
- local realmButton = Instance.new("TextButton", frame)
- realmButton.Size = UDim2.new(1, 0, 0, 36)
- realmButton.Position = UDim2.new(0, 0, 0, 41)
- realmButton.Text = "Realms"
- realmButton.Font = Enum.Font.SourceSansBold
- realmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- realmButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- realmButton.TextScaled = true
- teleportButton.MouseButton1Click:Connect(function()
- if frame:FindFirstChild("realmGui") then
- realmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- frame:FindFirstChild("realmGui"):Destroy()
- end
- if frame:FindFirstChild("teleportGui") then
- teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- frame:FindFirstChild("teleportGui"):Destroy()
- else
- teleportButton.TextColor3 = Color3.fromRGB(125, 125, 125)
- createTeleportGui(frame)
- end
- end)
- realmButton.MouseButton1Click:Connect(function()
- if frame:FindFirstChild("teleportGui") then
- teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- frame:FindFirstChild("teleportGui"):Destroy()
- end
- if frame:FindFirstChild("realmGui") then
- realmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- frame:FindFirstChild("realmGui"):Destroy()
- else
- realmButton.TextColor3 = Color3.fromRGB(125, 125, 125)
- createRealmGui(frame)
- end
- end)
- local text = Instance.new("TextLabel", frame)
- text.Size = UDim2.new(0.75, 0, 0, 36)
- text.Position = UDim2.new(0, 0, 0, 82)
- text.Text = "Auto Farm"
- text.Font = Enum.Font.SourceSansBold
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- text.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- text.TextScaled = true
- local status = Instance.new("TextButton", frame)
- status.Size = UDim2.new(0.25, -5, 0, 36)
- status.Position = UDim2.new(0.75, 5, 0, 82)
- status.Text = "Off"
- status.Font = Enum.Font.SourceSansBold
- status.TextColor3 = Color3.fromRGB(255, 0, 0)
- status.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- status.TextScaled = true
- status.MouseButton1Click:Connect(function()
- if autoTp then
- autoTp = false
- status.Text = "Off"
- status.TextColor3 = Color3.fromRGB(255, 0, 0)
- else
- autoTp = true
- status.Text = "On"
- status.TextColor3 = Color3.fromRGB(0, 255, 0)
- autoTeleportFunc()
- end
- end)
- local text = Instance.new("TextLabel", frame)
- text.Size = UDim2.new(0.75, 0, 0, 36)
- text.Position = UDim2.new(0, 0, 0, 123)
- text.Text = "Auto Click"
- text.Font = Enum.Font.SourceSansBold
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- text.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- text.TextScaled = true
- local status = Instance.new("TextButton", frame)
- status.Size = UDim2.new(0.25, -5, 0, 36)
- status.Position = UDim2.new(0.75, 5, 0, 123)
- status.Text = "Off"
- status.Font = Enum.Font.SourceSansBold
- status.TextColor3 = Color3.fromRGB(255, 0, 0)
- status.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- status.TextScaled = true
- status.MouseButton1Click:Connect(function()
- if autoClick then
- autoClick = false
- status.Text = "Off"
- status.TextColor3 = Color3.fromRGB(255, 0, 0)
- else
- autoClick = true
- status.Text = "On"
- status.TextColor3 = Color3.fromRGB(0, 255, 0)
- autoClickFunc()
- end
- end)
- end
- createGui()
- function createTeleportGui(frame)
- local frame = Instance.new("Frame", frame)
- frame.Name = "teleportGui"
- frame.Size = frame.Parent.Size
- frame.Position = UDim2.new(0, -5, frame.Parent.Position.X.Scale, 0)
- frame.BackgroundTransparency = 1
- for i, v in pairs(teleportLocations) do
- local text = Instance.new("TextButton", frame)
- text.Size = UDim2.new(1, 0, 0, 36)
- text.Position = UDim2.new(0, 0, 0, 41 * (i - 1))
- text.Text = teleportLocations[i][1]
- text.Font = Enum.Font.SourceSansBold
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- text.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- text.TextScaled = true
- text.MouseButton1Click:Connect(function()
- character:MoveTo(Vector3.new(teleportLocations[i][2], teleportLocations[i][3], teleportLocations[i][4]))
- end)
- end
- end
- function createRealmGui(frame)
- local frame = Instance.new("Frame", frame)
- frame.Name = "realmGui"
- frame.Size = frame.Parent.Size
- frame.Position = UDim2.new(0, -5, frame.Parent.Position.X.Scale, 0)
- frame.BackgroundTransparency = 1
- for i, v in pairs(realms) do
- local text = Instance.new("TextButton", frame)
- text.Size = UDim2.new(1, 0, 0, 36)
- text.Position = UDim2.new(0, 0, 0, 41 * (i - 1))
- text.Text = realms[i]
- text.Font = Enum.Font.SourceSansBold
- if realms[i] ~= realm then
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- else
- text.TextColor3 = Color3.fromRGB(125, 125, 125)
- end
- text.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- text.TextScaled = true
- text.MouseButton1Click:Connect(function()
- for i, v in pairs(text.Parent:GetChildren()) do
- v.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- text.TextColor3 = Color3.fromRGB(125, 125, 125)
- realm = realms[i]
- end)
- end
- end
- local canClick = true
- function autoClickFunc()
- if autoClick and canClick then
- canClick = false
- game:GetService("ReplicatedStorage").Events.ScreenClick:FireServer()
- delay(1, function()
- canClick = true
- autoClickFunc()
- end)
- end
- end
- local canTP = true
- function autoTeleportFunc()
- if autoTp and canTP then
- for i, v in pairs(workspace.Realms:FindFirstChild(realm).Candies:GetChildren()) do
- if not autoTp then
- return
- end
- canTP = false
- v.CanCollide = false
- v.CFrame = character.Head.CFrame
- if i%2 == 0 then
- wait()
- end
- canTP = true
- end
- if autoTp then
- autoTeleportFunc()
- end
- end
- end
- --shit rebirth script
- --to use this shit rebirth script, just execute this with the auto click + auto farm script from above running.
- --once you start it no way to stop other than leaving the server :/
- --change the pets down below there to what you have, use a remote spy and equip a pet to get the event
- --[[
- local player = game:GetService("Players").LocalPlayer
- local character = player.Character
- local gui = Instance.new("ScreenGui", player.PlayerGui)
- local button = Instance.new("TextButton", gui)
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0, 0, 0, 0)
- button.Text = "Sell"
- button.MouseButton1Click:Connect(function()
- tp()
- end)
- local button = Instance.new("TextButton", gui)
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0, 0, 0, 50)
- button.Text = "Equip Pets"
- button.MouseButton1Click:Connect(function()
- pets()
- end)
- local button = Instance.new("TextButton", gui)
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0, 0, 0, 100)
- button.Text = "15k"
- button.MouseButton1Click:Connect(function()
- buy1()
- end)
- local button = Instance.new("TextButton", gui)
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0, 0, 0, 150)
- button.Text = "150k"
- function tp()
- character:MoveTo(Vector3.new(515, 29, -134))
- end
- function pets()
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Equip", { "Pets", "Unicorn", "Unicorn8" })
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Equip", { "Pets", "Unicorn", "Unicorn9" })
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Equip", { "Pets", "Unicorn", "Unicorn10" })
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Equip", { "Pets", "Zeus", "Zeus1" })
- end
- function buy1()
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Buy", { "Fatness", "Chubby" })
- end
- function buy2()
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Buy", { "Fatness", "Fat" })
- end
- function rebirth()
- game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer("Rebirth")
- end
- function Tick()
- tp()
- pets()
- if player.leaderstats.Coins.Value >= 15000 then
- buy1()
- end
- if player.leaderstats.Coins.Value >= 150000 then
- buy2()
- end
- rebirth()
- delay(1, function()
- Tick()
- end)
- end
- Tick()
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement