Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.CoreGui:FindFirstChild("UI Workspace") then game.CoreGui:FindFirstChild("UI Workspace"):Destroy() end
- repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
- local plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
- local globalStop = false
- local globalColor = 33/255
- local util = {}
- -- Objects
- local UIWorkspace = Instance.new("ScreenGui")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- -- Properties
- UIWorkspace.Archivable = false
- UIWorkspace.Name = "UI Workspace"
- UIWorkspace.Parent = game.CoreGui
- TextLabel.Parent = UIWorkspace
- TextLabel.BackgroundColor3 = Color3.new(globalColor, globalColor, globalColor)
- TextLabel.BackgroundTransparency = 0.05
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0, 0, 0.800000012, 0)
- TextLabel.Size = UDim2.new(0, 80, 0, 30)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size28
- TextLabel.Text = ">"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 26
- TextLabel.TextXAlignment = Enum.TextXAlignment.Right
- TextBox.Parent = UIWorkspace
- TextBox.BackgroundColor3 = Color3.new(globalColor, globalColor, globalColor)
- TextBox.BackgroundTransparency = 0.05
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0, 85, 0.800000012, 0)
- TextBox.Size = UDim2.new(1, 0, 0, 30)
- TextBox.Font = Enuqm.Font.SciFi
- TextBox.FontSize = Enum.FontSize.Size18
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 18
- TextBox.TextXAlignment = Enum.TextXAlignment.Left
- local mouse = game.Players.LocalPlayer:GetMouse()
- mouse.KeyDown:Connect(function(Key)
- if string.byte(Key) == 13 then
- TextBox:CaptureFocus()
- TextBox.Text = ""
- end
- end)
- --==--==--==--==--==--==--==--
- --EDIT STUFF HERE--
- local cmds = {
- "PRINT COMMANDS | [cmds]",
- "FARM SNOW | [farm] [delay] (delay is optional.)",
- "(increasing the delay makes farming slower but less laggy.)",
- "STOP EVERYTHING | [stop]",
- }
- --END--
- --==--==--==--==--==--==
- TextBox.FocusLost:connect(function(enterPressed)
- if enterPressed then
- secondaryInit()
- local args = util.splitArgs(TextBox.Text)
- --==--==--==--==--==--==--==--
- --EDIT STUFF HERE--
- if #args > 0 then
- if args[1] == "farm" then
- globalStop = false
- local maxSnow = {
- ["small"] = 45,
- ["medium"] = 90,
- ["large"] = 230,
- ["huge"] = 550,
- ["tech"] = 950,
- ["tardis"] = 700,
- ["star"] = 4000,
- }
- local delayA = 0
- if #args > 1 then
- if tonumber(args[2]) then
- delayA = tonumber(args[2])
- end
- end
- repeat wait(1)
- for _, v in pairs(workspace.Sidewalks:children()) do
- for _, p in pairs(v:children()) do
- if p.Name == "Snow" and p:IsA("Part") and not globalStop then
- repeat wait(delayA)
- local curSnow = plr.Stats.currentSnow.Value
- local maxSnowB = nil
- char:FindFirstChild("HumanoidRootPart").CFrame = p.CFrame
- game.ReplicatedStorage.RemoteEvents.Shovel:FireServer(p)
- for i, k in pairs(maxSnow) do
- if string.find(string.lower(plr.Stats.lastWornBackpack.Value), i) then
- maxSnowB = k
- end
- end
- if maxSnowB ~= 0 then
- util.log("FARMING: "..curSnow.."/"..maxSnowB)
- if curSnow == maxSnowB then
- char:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(Vector3.new(394.763, 2.3, -68.564))
- wait(1)
- game.ReplicatedStorage.RemoteEvents.SellSnow:FireServer(true)
- repeat wait(delayA)
- curSnow = plr.Stats.currentSnow.Value
- util.log("SELLING: "..curSnow.."/"..maxSnowB)
- char:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(Vector3.new(394.763, 2.3, -68.564))
- until curSnow == 0 or globalStop
- end
- else
- util.log("ERROR BACKPACK NOT FOUND.")
- globalStop = true
- end
- until p.Size.Y <= 0.1 or globalStop
- end
- end
- end
- until globalStop
- end
- if args[1] == "cmds" then
- if game.CoreGui:FindFirstChild("CatchMeIfYaCan") then
- game.CoreGui:FindFirstChild("CatchMeIfYaCan"):Destroy()
- end
- local curOff = -20
- local ScrGui = Instance.new("ScreenGui", game.CoreGui)
- ScrGui.Name = "CatchMeIfYaCan"
- local Frame = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local TextButton = Instance.new("TextButton")
- Frame.Parent = ScrGui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.200000003, 0, 0.200000003, 0)
- Frame.Size = UDim2.new(0, 400, 0, 20)
- Frame.Active = true
- Frame.Draggable = true
- ScrollingFrame.Parent = Frame
- ScrollingFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- ScrollingFrame.BackgroundTransparency = 0.20000000298023
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0, 0, 0, 20)
- ScrollingFrame.Size = UDim2.new(0, 400, 0, 200)
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- for i, v in pairs(cmds) do
- curOff = curOff + 20
- local TextLabel = Instance.new("TextLabel")
- ScrollingFrame.CanvasSize = UDim2.new(0,0,0,curOff + 20)
- TextLabel.Parent = ScrollingFrame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0, 10, 0, curOff)
- TextLabel.Size = UDim2.new(0, 350, 0, 20)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = v
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 14
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- end
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0, 380, 0, 0)
- TextButton.Size = UDim2.new(0, 20, 0, 20)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size18
- TextButton.Text = "X"
- TextButton.TextSize = 16
- TextButton.MouseButton1Down:connect(function(closecmds)
- ScrGui:Destroy()
- end)
- end
- if args[1] == "stop" then
- globalStop = true
- end
- end
- --END--
- --==--==--==--==--==--==--==--
- end
- end)
- function init()
- repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
- plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
- util.printf("Welcome, "..plr.Name)
- --==--==--==--==--==--==--==--
- --EDIT STUFF HERE--
- util.log("GAME INFO: SNOW SHOVELING SIMULATOR.")
- util.log("COMMANDS (not case-sensitive):")
- for i = 1, #cmds do
- util.log(i.." | "..cmds[i])
- end
- --END--
- --==--==--==--==--==--==--==--
- end
- function secondaryInit()
- repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
- plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
- end
- function util.findPlayer(str)
- for i, v in pairs(game:GetService("Players"):GetPlayers()) do
- if string.lower(v.Name) == string.lower(str) or string.find(string.lower(v.Name), string.lower(str)) then
- return v
- end
- end
- end
- function util.splitArgs(str)
- local tempArgs = {}
- for i in string.gmatch(str, "%S+") do
- table.insert(tempArgs, string.lower(i))
- end
- return tempArgs
- end
- function util.printf(str)
- TextBox.Text = ""
- for i = 1, #str do
- TextBox.Text = TextBox.Text..string.sub(str, i, i)
- wait(.05)
- end
- wait(1)
- TextBox.Text = ""
- end
- function util.log(str)
- print("[--INORI--] "..str)
- end
- init()
- char:FindFirstChild("Humanoid").Died:connect(function()
- secondaryInit()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement