Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local BotSnowman = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local CollectCanes = Instance.new("TextButton")
- local SnowmanForcefield = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.0372093208, 0, 0.0323159769, 0)
- Frame.Size = UDim2.new(0, 210, 0, 88)
- Frame.Active = true
- Frame.Draggable = true
- BotSnowman.Name = "BotSnowman"
- BotSnowman.Parent = Frame
- BotSnowman.BackgroundColor3 = Color3.new(1, 1, 1)
- BotSnowman.BackgroundTransparency = 1
- BotSnowman.BorderSizePixel = 0
- BotSnowman.Position = UDim2.new(-0.00332227442, 0, -0.0128090195, 0)
- BotSnowman.Size = UDim2.new(0, 211, 0, 21)
- BotSnowman.Font = Enum.Font.SourceSans
- BotSnowman.Text = "Bot enabled: false"
- BotSnowman.TextColor3 = Color3.new(1, 1, 1)
- BotSnowman.TextScaled = true
- BotSnowman.TextSize = 14
- BotSnowman.TextWrapped = true
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(-0.00808414817, 0, 0.189999998, 0)
- TextLabel.Size = UDim2.new(0, 107, 0, 18)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Delay:"
- TextLabel.TextColor3 = Color3.new(0.25098, 0.866667, 0.207843)
- TextLabel.TextSize = 14
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.BorderColor3 = Color3.new(0, 0, 0)
- TextBox.BorderSizePixel = 2
- TextBox.Position = UDim2.new(0.497453004, 0, 0.189999998, 0)
- TextBox.Size = UDim2.new(0, 106, 0, 18)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = "0.5"
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 14
- CollectCanes.Name = "CollectCanes"
- CollectCanes.Parent = Frame
- CollectCanes.BackgroundColor3 = Color3.new(1, 1, 1)
- CollectCanes.BackgroundTransparency = 1
- CollectCanes.BorderColor3 = Color3.new(1, 1, 1)
- CollectCanes.Position = UDim2.new(0.153820589, 0, 0.650216877, 0)
- CollectCanes.Size = UDim2.new(0, 141, 0, 21)
- CollectCanes.Font = Enum.Font.SourceSans
- CollectCanes.Text = "Collect Yellow"
- CollectCanes.TextColor3 = Color3.new(1, 1, 1)
- CollectCanes.TextScaled = true
- CollectCanes.TextWrapped = true
- SnowmanForcefield.Name = "SnowmanForcefield"
- SnowmanForcefield.Parent = Frame
- SnowmanForcefield.BackgroundColor3 = Color3.new(1, 1, 1)
- SnowmanForcefield.BackgroundTransparency = 1
- SnowmanForcefield.BorderSizePixel = 0
- SnowmanForcefield.Position = UDim2.new(-0.0128461123, 0, 0.376477361, 0)
- SnowmanForcefield.Size = UDim2.new(0, 211, 0, 21)
- SnowmanForcefield.Font = Enum.Font.SourceSans
- SnowmanForcefield.Text = "SnowmanKiller: false"
- SnowmanForcefield.TextColor3 = Color3.new(1, 1, 1)
- SnowmanForcefield.TextScaled = true
- SnowmanForcefield.TextSize = 14
- SnowmanForcefield.TextWrapped = true
- -- Scripts:
- _G.autofarm = false
- _G.snowKiller = false
- _G.waitTime = 0.5
- local Player = game.Players.LocalPlayer --get the local player
- game:GetService("RunService").RenderStepped:connect(
- function()
- game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
- end
- )
- function collectSnow()
- while Player.localData.snowballs.Value < Player.localData.sackStorage.Value do
- game.ReplicatedStorage.ThisGame.Calls["snowballController"]:FireServer("startRoll")
- wait(_G.waitTime)
- game.ReplicatedStorage.ThisGame.Calls["snowballControllerFunc"]:InvokeServer("stopRoll")
- print("Rolling Snow:" .. Player.localData.snowballs.Value .. "/" .. Player.localData.sackStorage.Value)
- end
- end
- function addSnowToSnowman()
- if Player.localData.snowballs.Value == Player.localData.sackStorage.Value then
- game.ReplicatedStorage.ThisGame.Calls["snowballControllerFunc"]:InvokeServer("stopRoll")
- game.ReplicatedStorage.ThisGame.Calls["snowballController"]:FireServer("addToSnowman")
- wait(2)
- end
- end
- function killSnowMen()
- for i, snowman in ipairs(Workspace.minionsHolder:GetChildren()) do
- if snowman:FindFirstChild("hitCount") then
- while snowman.hitCount.Value > 0 and
- (snowman.hitBox.Position - Player.Character.HumanoidRootPart.Position).magnitude < 20 do
- game.ReplicatedStorage.ThisGame.Calls["minionHelper"]:FireServer("minionHit", snowman)
- wait()
- end
- end
- end
- end
- function pickUpCanes()
- local currPos = Player.Character.HumanoidRootPart.CFrame
- for i, map in ipairs(Workspace["snowmanBases"]:GetChildren()) do
- for i, step in ipairs(map.steps:GetChildren()) do
- if step.Name == "goldStepSpot" and step:FindFirstChild("goldCane") then
- Player.Character.HumanoidRootPart.CFrame = step:FindFirstChild("goldCane").CFrame
- wait(0.3)
- end
- end
- end
- Player.Character.HumanoidRootPart.CFrame = currPos
- end
- function MainBot()
- while _G.autofarm do
- _G.waitTime = tonumber(TextBox.Text)
- collectSnow()
- addSnowToSnowman()
- pickUpCanes()
- wait()
- end
- end
- function MainKiller()
- while _G.snowKiller do
- killSnowMen()
- wait()
- end
- end
- CollectCanes.MouseButton1Click:connect(
- function()
- pickUpCanes()
- end
- )
- SnowmanForcefield.MouseButton1Click:connect(
- function()
- _G.snowKiller = not _G.snowKiller
- if _G.snowKiller then
- SnowmanForcefield.Text = "SnowmanKiller: true"
- MainKiller()
- else
- SnowmanForcefield.Text = "SnowmanKiller: false"
- end
- end
- )
- BotSnowman.MouseButton1Click:connect(
- function()
- _G.autofarm = not _G.autofarm
- if _G.autofarm then
- BotSnowman.Text = "Bot enabled: true"
- MainBot()
- else
- BotSnowman.Text = "Bot enabled: false"
- end
- end
- )
Add Comment
Please, Sign In to add comment