Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by Cow
- -- Created: 2/5/19
- -- Game: https://www.roblox.com/games/2606447854
- 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 TP"
- 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
- character:MoveTo(v.Position)
- wait(0.5)
- character:MoveTo(sells[realm])
- wait(1)
- canTP = true
- end
- if autoTp then
- autoTeleportFunc()
- end
- end
- end
- --Showcased By Scelt#3641
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement