--======================================================== -- FROST FARM V12 | PREMIUM EDITION -- LocalScript -- StarterPlayer > StarterPlayerScripts --======================================================== local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local PathfindingService = game:GetService("PathfindingService") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local SoundService = game:GetService("SoundService") local Player = Players.LocalPlayer --======================================================== -- SETTINGS --======================================================== local SETTINGS = { Distance = 10, Filter = "ALL", ScanInterval = 1.25, WallCheckInterval = 0.45, RepathCooldown = 1.4, BypassCooldown = 1.5, BypassDistance = 12, OrbitSpeed = 1.6, StuckTime = 1.8, WaypointDistance = 3 } --======================================================== -- COLORS --======================================================== local COLORS = { Background = Color3.fromRGB(9, 12, 19), Surface = Color3.fromRGB(17, 22, 33), Surface2 = Color3.fromRGB(24, 31, 45), Surface3 = Color3.fromRGB(31, 40, 56), Gold = Color3.fromRGB(231, 188, 105), GoldLight = Color3.fromRGB(255, 222, 153), White = Color3.fromRGB(241, 244, 250), Muted = Color3.fromRGB(139, 151, 173), Green = Color3.fromRGB(57, 185, 126), Red = Color3.fromRGB(220, 82, 91), Blue = Color3.fromRGB(82, 147, 225) } --======================================================== -- STATE --======================================================== local Character local Humanoid local Root local Target local FarmEnabled = false local MansEnabled = true local AvoidEnabled = true local BypassEnabled = true local WindowVisible = true local CurrentPath local Waypoints = {} local WaypointIndex = 0 local ComputingPath = false local PathVersion = 0 local LastScan = 0 local LastWallCheck = 0 local LastPathTime = 0 local LastBypassTime = 0 local LastRootPosition local LastMovePosition local StuckTimer = 0 local MansAngle = 0 local MansDirection = 1 local LastDirectionChange = 0 local BypassPosition local BypassUntil = 0 local WallBlocked = false local BlockedConnection --======================================================== -- SOUND EFFECTS --======================================================== local function playSound(soundId, volume, speed) local sound = Instance.new("Sound") sound.SoundId = soundId sound.Volume = volume or 0.35 sound.PlaybackSpeed = speed or 1 sound.Parent = SoundService sound:Play() sound.Ended:Connect(function() sound:Destroy() end) end local function clickSound() playSound("rbxasset://sounds/electronicpingshort.wav", 0.3, 1.25) end local function successSound() playSound("rbxasset://sounds/electronicpingshort.wav", 0.4, 0.9) end --======================================================== -- CHARACTER --======================================================== local function setupCharacter(character) Character = character Humanoid = character:WaitForChild("Humanoid") Root = character:WaitForChild("HumanoidRootPart") Target = nil LastRootPosition = nil LastMovePosition = nil CurrentPath = nil Waypoints = {} BypassPosition = nil StuckTimer = 0 end if Player.Character then setupCharacter(Player.Character) end Player.CharacterAdded:Connect(setupCharacter) --======================================================== -- GUI HELPERS --======================================================== local Gui = Instance.new("ScreenGui") Gui.Name = "ФАРМ" Gui.ResetOnSpawn = false Gui.IgnoreGuiInset = true Gui.Parent = Player:WaitForChild("PlayerGui") local function corner(object, radius) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, radius) c.Parent = object return c end local function stroke(object, color, thickness, transparency) local s = Instance.new("UIStroke") s.Color = color s.Thickness = thickness or 1 s.Transparency = transparency or 0 s.Parent = object return s end local function tween(object, duration, properties, style) local t = TweenService:Create( object, TweenInfo.new( duration, style or Enum.EasingStyle.Quint, Enum.EasingDirection.Out ), properties ) t:Play() return t end local function label(parent, text, position, size, color, textSize, font) local l = Instance.new("TextLabel") l.BackgroundTransparency = 1 l.Position = position l.Size = size l.Text = text l.TextColor3 = color or COLORS.White l.TextSize = textSize or 13 l.Font = font or Enum.Font.GothamMedium l.TextXAlignment = Enum.TextXAlignment.Left l.TextYAlignment = Enum.TextYAlignment.Center l.Parent = parent return l end local function panel(parent, position, size) local p = Instance.new("Frame") p.Position = position p.Size = size p.BackgroundColor3 = COLORS.Surface p.BorderSizePixel = 0 p.Parent = parent corner(p, 12) stroke(p, COLORS.Surface3, 1, 0.15) return p end --======================================================== -- MAIN WINDOW --======================================================== local Shadow = Instance.new("Frame") Shadow.Size = UDim2.fromOffset(410, 590) Shadow.Position = UDim2.new(0.5, -205 + 7, 0.5, -295 + 9) Shadow.BackgroundColor3 = Color3.new(0, 0, 0) Shadow.BackgroundTransparency = 0.48 Shadow.BorderSizePixel = 0 Shadow.Parent = Gui corner(Shadow, 22) local Main = Instance.new("Frame") Main.Size = UDim2.fromOffset(410, 590) Main.Position = UDim2.new(0.5, -205, 0.5, -295) Main.BackgroundColor3 = COLORS.Background Main.BorderSizePixel = 0 Main.ClipsDescendants = true Main.Active = true Main.Parent = Gui corner(Main, 20) stroke(Main, COLORS.Gold, 1.4, 0.35) local MainGradient = Instance.new("UIGradient") MainGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(19, 26, 39)), ColorSequenceKeypoint.new(1, COLORS.Background) }) MainGradient.Rotation = 90 MainGradient.Parent = Main -- HEADER local Header = Instance.new("Frame") Header.Size = UDim2.new(1, 0, 0, 100) Header.BackgroundColor3 = COLORS.Surface Header.BorderSizePixel = 0 Header.Parent = Main corner(Header, 20) local HeaderCover = Instance.new("Frame") HeaderCover.Position = UDim2.new(0, 0, 1, -18) HeaderCover.Size = UDim2.new(1, 0, 0, 18) HeaderCover.BackgroundColor3 = COLORS.Surface HeaderCover.BorderSizePixel = 0 HeaderCover.Parent = Header local HeaderLine = Instance.new("Frame") HeaderLine.Position = UDim2.new(0, 20, 1, -2) HeaderLine.Size = UDim2.new(1, -40, 0, 2) HeaderLine.BackgroundColor3 = COLORS.Gold HeaderLine.BorderSizePixel = 0 HeaderLine.Parent = Header local Title = label( Header, "FROST FARM BY CReatesST", UDim2.fromOffset(22, 16), UDim2.new(1, -45, 0, 38), COLORS.GoldLight, 27, Enum.Font.GothamBlack ) label( Header, "PREMIUM EDITION / VERSION 12", UDim2.fromOffset(24, 57), UDim2.new(1, -45, 0, 20), COLORS.Muted, 10, Enum.Font.GothamBold ) local HeaderDot = Instance.new("Frame") HeaderDot.Size = UDim2.fromOffset(9, 9) HeaderDot.Position = UDim2.new(1, -25, 0, 24) HeaderDot.BackgroundColor3 = COLORS.Green HeaderDot.BorderSizePixel = 0 HeaderDot.Parent = Header corner(HeaderDot, 10) -- DRAGGING do local dragging = false local dragStart local startPosition Header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPosition = Main.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and ( input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch ) then local delta = input.Position - dragStart Main.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) Shadow.Position = Main.Position + UDim2.fromOffset(7, 9) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) end --======================================================== -- STATUS PANEL --======================================================== local StatusPanel = panel( Main, UDim2.fromOffset(18, 115), UDim2.new(1, -36, 0, 65) ) label( StatusPanel, "SYSTEM STATUS", UDim2.fromOffset(14, 7), UDim2.new(1, -25, 0, 16), COLORS.Muted, 10, Enum.Font.GothamBold ) local StatusText = label( StatusPanel, "● STANDBY", UDim2.fromOffset(14, 29), UDim2.new(1, -25, 0, 25), COLORS.Gold, 15, Enum.Font.GothamBold ) -- TARGET PANEL local TargetPanel = panel( Main, UDim2.fromOffset(18, 190), UDim2.new(1, -36, 0, 65) ) label( TargetPanel, "CURRENT TARGET", UDim2.fromOffset(14, 7), UDim2.new(1, -25, 0, 16), COLORS.Muted, 10, Enum.Font.GothamBold ) local TargetText = label( TargetPanel, "No target selected", UDim2.fromOffset(14, 29), UDim2.new(1, -25, 0, 25), COLORS.White, 13, Enum.Font.GothamBold ) TargetText.TextTruncate = Enum.TextTruncate.AtEnd --======================================================== -- BUTTON FACTORY --======================================================== local function createButton(parent, text, y, color) local b = Instance.new("TextButton") b.Position = UDim2.fromOffset(18, y) b.Size = UDim2.new(1, -36, 0, 43) b.BackgroundColor3 = color b.BorderSizePixel = 0 b.Text = text b.TextColor3 = COLORS.White b.TextSize = 13 b.Font = Enum.Font.GothamBold b.AutoButtonColor = false b.Parent = parent corner(b, 10) stroke(b, Color3.new(1, 1, 1), 1, 0.88) local originalColor = color b.MouseEnter:Connect(function() tween(b, 0.18, { BackgroundColor3 = originalColor:Lerp(Color3.new(1,1,1), 0.12) }) end) b.MouseLeave:Connect(function() tween(b, 0.2, { BackgroundColor3 = originalColor }) end) b.MouseButton1Down:Connect(function() tween(b, 0.08, { Size = UDim2.new(1, -42, 0, 40) }) end) b.MouseButton1Up:Connect(function() tween(b, 0.16, { Size = UDim2.new(1, -36, 0, 43) }) end) return b end local FarmButton = createButton( Main, "▶ START FARM", 272, COLORS.Green ) local MansButton = createButton( Main, "◈ MANS MODE: ON", 323, COLORS.Blue ) local AvoidButton = createButton( Main, "✓ OBSTACLE AVOIDANCE: ON", 374, Color3.fromRGB(83, 126, 91) ) local BypassButton = createButton( Main, "↗ WALL BYPASS: ON", 425, Color3.fromRGB(133, 99, 57) ) --======================================================== -- DISTANCE SETTING --======================================================== local DistancePanel = panel( Main, UDim2.fromOffset(18, 478), UDim2.new(1, -36, 0, 48) ) label( DistancePanel, "MANS DISTANCE", UDim2.fromOffset(12, 0), UDim2.new(0.48, 0, 1, 0), COLORS.Gold, 11, Enum.Font.GothamBold ) local DistanceInput = Instance.new("TextBox") DistanceInput.Position = UDim2.new(0.59, 0, 0, 7) DistanceInput.Size = UDim2.new(0.35, 0, 0, 34) DistanceInput.BackgroundColor3 = COLORS.Surface3 DistanceInput.TextColor3 = COLORS.White DistanceInput.Text = tostring(SETTINGS.Distance) DistanceInput.TextSize = 14 DistanceInput.Font = Enum.Font.GothamBold DistanceInput.ClearTextOnFocus = false DistanceInput.Parent = DistancePanel corner(DistanceInput, 8) DistanceInput.FocusLost:Connect(function() local value = tonumber(DistanceInput.Text) if value then SETTINGS.Distance = math.clamp(math.floor(value), 10, 100) end DistanceInput.Text = tostring(SETTINGS.Distance) clickSound() end) --======================================================== -- TARGET FILTER --======================================================== local FilterPanel = panel( Main, UDim2.fromOffset(18, 538), UDim2.new(1, -36, 0, 40) ) local FilterButton = Instance.new("TextButton") FilterButton.Size = UDim2.new(1, -12, 1, -8) FilterButton.Position = UDim2.fromOffset(6, 4) FilterButton.BackgroundColor3 = COLORS.Surface3 FilterButton.TextColor3 = COLORS.White FilterButton.TextSize = 11 FilterButton.Font = Enum.Font.GothamBold FilterButton.Text = "TARGET: ALL FROSTBOUND ▼" FilterButton.Parent = FilterPanel corner(FilterButton, 8) local FilterOptions = { {value = "ALL", text = "ALL FROSTBOUND"}, {value = "NORMAL", text = "FROSTBOUND"}, {value = "SPECIAL", text = "SPECIAL FROSTBOUND"} } local FilterIndex = 1 --======================================================== -- MONSTER DETECTION --======================================================== local function getPart(model) if not model or not model:IsA("Model") then return nil end return model.PrimaryPart or model:FindFirstChild("HumanoidRootPart") or model:FindFirstChildWhichIsA("BasePart", true) end local function getNickname(model) local name = string.upper(model.Name) if string.find(name, "SPECIAL FROSTBOUND", 1, true) then return "SPECIAL FROSTBOUND" end if string.find(name, "FROSTBOUND", 1, true) then return "FROSTBOUND" end for _, obj in ipairs(model:GetDescendants()) do if obj:IsA("TextLabel") or obj:IsA("TextButton") then local text = string.upper(obj.Text) if string.find(text, "SPECIAL FROSTBOUND", 1, true) then return "SPECIAL FROSTBOUND" end if string.find(text, "FROSTBOUND", 1, true) then return "FROSTBOUND" end end end return nil end local function matchesFilter(model) local name = getNickname(model) if SETTINGS.Filter == "ALL" then return name ~= nil elseif SETTINGS.Filter == "NORMAL" then return name == "FROSTBOUND" elseif SETTINGS.Filter == "SPECIAL" then return name == "SPECIAL FROSTBOUND" end return false end local function findTarget() if not Root then return nil end local best local bestDistance = math.huge for _, obj in ipairs(Workspace:GetDescendants()) do if obj:IsA("Model") and obj ~= Character and matchesFilter(obj) then local part = getPart(obj) if part then local distance = (Root.Position - part.Position).Magnitude if distance < bestDistance then best = obj bestDistance = distance end end end end return best end --======================================================== -- PATH CLEANUP --======================================================== local function clearPath() PathVersion += 1 if BlockedConnection then BlockedConnection:Disconnect() BlockedConnection = nil end CurrentPath = nil Waypoints = {} WaypointIndex = 0 LastMovePosition = nil end --======================================================== -- RAYCAST --======================================================== local RayParams = RaycastParams.new() RayParams.FilterType = Enum.RaycastFilterType.Exclude local function hasObstacle(destination) if not Root then return false end RayParams.FilterDescendantsInstances = { Character, Target } local origin = Root.Position + Vector3.new(0, 2, 0) local direction = destination - Root.Position direction = Vector3.new(direction.X, 0, direction.Z) if direction.Magnitude < 2 then return false end local result = Workspace:Raycast( origin, direction, RayParams ) return result ~= nil end --======================================================== -- WALL BYPASS --======================================================== local function getBypassPosition(destination) if not Root then return nil end local forward = destination - Root.Position forward = Vector3.new(forward.X, 0, forward.Z) if forward.Magnitude < 2 then return nil end forward = forward.Unit local right = Vector3.new(-forward.Z, 0, forward.X) local directions = { right, -right, (right + forward).Unit, (-right + forward).Unit } RayParams.FilterDescendantsInstances = { Character, Target } for _, direction in ipairs(directions) do local origin = Root.Position + Vector3.new(0, 2, 0) local result = Workspace:Raycast( origin, direction * SETTINGS.BypassDistance, RayParams ) if not result then local candidate = Root.Position + direction * SETTINGS.BypassDistance local ground = Workspace:Raycast( candidate + Vector3.new(0, 6, 0), Vector3.new(0, -18, 0), RayParams ) if ground then local point = ground.Position + Vector3.new(0, 3, 0) if not hasObstacle(point) then return point end end end end return nil end local function updateWallBypass(destination) if not BypassEnabled or not AvoidEnabled then BypassPosition = nil return nil end if BypassPosition and os.clock() < BypassUntil then return BypassPosition end BypassPosition = nil if os.clock() - LastWallCheck < SETTINGS.WallCheckInterval then return nil end LastWallCheck = os.clock() WallBlocked = hasObstacle(destination) if not WallBlocked then return nil end if os.clock() - LastBypassTime < SETTINGS.BypassCooldown then return nil end LastBypassTime = os.clock() local point = getBypassPosition(destination) if point then BypassPosition = point BypassUntil = os.clock() + 1.6 return point end return nil end --======================================================== -- PATHFINDING --======================================================== local function computePath(destination, force) if ComputingPath or not Root then return end if not force and os.clock() - LastPathTime < SETTINGS.RepathCooldown then return end ComputingPath = true LastPathTime = os.clock() PathVersion += 1 local version = PathVersion local start = Root.Position task.spawn(function() local path = PathfindingService:CreatePath({ AgentRadius = 2, AgentHeight = 5, AgentCanJump = true, AgentCanClimb = true, WaypointSpacing = 4 }) local success = pcall(function() path:ComputeAsync(start, destination) end) if version ~= PathVersion then ComputingPath = false return end if success and path.Status == Enum.PathStatus.Success then if BlockedConnection then BlockedConnection:Disconnect() end CurrentPath = path Waypoints = path:GetWaypoints() WaypointIndex = math.min(2, #Waypoints) BlockedConnection = path.Blocked:Connect(function(index) if index >= WaypointIndex then CurrentPath = nil Waypoints = {} WaypointIndex = 0 end end) else CurrentPath = nil Waypoints = {} end ComputingPath = false end) end --======================================================== -- MOVEMENT --======================================================== local function moveTo(position) if not Humanoid or not Root then return end if not LastMovePosition or (position - LastMovePosition).Magnitude > 2 then Humanoid:MoveTo(position) LastMovePosition = position end end local function followPath() if not CurrentPath or #Waypoints == 0 then return end if WaypointIndex > #Waypoints then clearPath() return end local waypoint = Waypoints[WaypointIndex] if (Root.Position - waypoint.Position).Magnitude < SETTINGS.WaypointDistance then WaypointIndex += 1 LastMovePosition = nil if WaypointIndex > #Waypoints then clearPath() return end waypoint = Waypoints[WaypointIndex] end if waypoint.Action == Enum.PathWaypointAction.Jump then Humanoid.Jump = true end moveTo(waypoint.Position) end --======================================================== -- MANS --======================================================== local function getMansPosition(enemyPosition, dt) MansAngle += dt * SETTINGS.OrbitSpeed * MansDirection if os.clock() - LastDirectionChange > 3 then MansDirection = -MansDirection LastDirectionChange = os.clock() end local radius = SETTINGS.Distance + math.sin(os.clock() * 2) * 0.7 return enemyPosition + Vector3.new( math.cos(MansAngle) * radius, 0, math.sin(MansAngle) * radius ) end --======================================================== -- FILTER BUTTON --======================================================== FilterButton.MouseButton1Click:Connect(function() clickSound() FilterIndex += 1 if FilterIndex > #FilterOptions then FilterIndex = 1 end SETTINGS.Filter = FilterOptions[FilterIndex].value FilterButton.Text = "TARGET: " .. FilterOptions[FilterIndex].text .. " ▼" Target = nil BypassPosition = nil clearPath() end) --======================================================== -- BUTTON ACTIONS --======================================================== FarmButton.MouseButton1Click:Connect(function() clickSound() FarmEnabled = not FarmEnabled if FarmEnabled then FarmButton.Text = "■ STOP FARM" tween(FarmButton, 0.2, { BackgroundColor3 = COLORS.Red }) StatusText.Text = "● SEARCHING" StatusText.TextColor3 = COLORS.Green successSound() else FarmButton.Text = "▶ START FARM" tween(FarmButton, 0.2, { BackgroundColor3 = COLORS.Green }) Target = nil BypassPosition = nil clearPath() if Humanoid and Root then Humanoid:MoveTo(Root.Position) end StatusText.Text = "● STANDBY" StatusText.TextColor3 = COLORS.Gold TargetText.Text = "No target selected" end end) MansButton.MouseButton1Click:Connect(function() clickSound() MansEnabled = not MansEnabled MansButton.Text = MansEnabled and "◈ MANS MODE: ON" or "○ MANS MODE: OFF" tween(MansButton, 0.2, { BackgroundColor3 = MansEnabled and COLORS.Blue or COLORS.Surface3 }) clearPath() end) AvoidButton.MouseButton1Click:Connect(function() clickSound() AvoidEnabled = not AvoidEnabled AvoidButton.Text = AvoidEnabled and "✓ OBSTACLE AVOIDANCE: ON" or "✕ OBSTACLE AVOIDANCE: OFF" tween(AvoidButton, 0.2, { BackgroundColor3 = AvoidEnabled and Color3.fromRGB(83, 126, 91) or COLORS.Surface3 }) if not AvoidEnabled then clearPath() BypassPosition = nil end end) BypassButton.MouseButton1Click:Connect(function() clickSound() BypassEnabled = not BypassEnabled BypassButton.Text = BypassEnabled and "↗ WALL BYPASS: ON" or "↗ WALL BYPASS: OFF" tween(BypassButton, 0.2, { BackgroundColor3 = BypassEnabled and Color3.fromRGB(133, 99, 57) or COLORS.Surface3 }) BypassPosition = nil end) --======================================================== -- KEYBOARD --======================================================== UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.Insert then WindowVisible = not WindowVisible if WindowVisible then Main.Visible = true Shadow.Visible = true Main.BackgroundTransparency = 1 tween(Main, 0.22, { BackgroundTransparency = 0 }) else tween(Main, 0.18, { BackgroundTransparency = 1 }) task.delay(0.19, function() if not WindowVisible then Main.Visible = false Shadow.Visible = false end end) end end end) --======================================================== -- MAIN LOOP --======================================================== RunService.Heartbeat:Connect(function(dt) if not FarmEnabled or not Root or not Humanoid then return end if Humanoid.Health <= 0 then return end if os.clock() - LastScan >= SETTINGS.ScanInterval then LastScan = os.clock() if not Target or not Target.Parent or not matchesFilter(Target) then Target = findTarget() BypassPosition = nil clearPath() end end if not Target then StatusText.Text = "● SEARCHING FOR TARGET" TargetText.Text = "No matching monster" return end local enemyPart = getPart(Target) if not enemyPart then Target = nil clearPath() return end local enemyPosition = enemyPart.Position local distance = (Root.Position - enemyPosition).Magnitude TargetText.Text = getNickname(Target) .. " / " .. math.floor(distance) .. " STUDS" local destination if MansEnabled and distance <= SETTINGS.Distance + 3 then destination = getMansPosition(enemyPosition, dt) StatusText.Text = "● MANS ACTIVE" StatusText.TextColor3 = COLORS.Gold else destination = enemyPosition StatusText.Text = "● APPROACHING" StatusText.TextColor3 = COLORS.Blue end -- WALL BYPASS local bypassDestination = updateWallBypass(destination) if bypassDestination then destination = bypassDestination StatusText.Text = "● WALL BYPASS ACTIVE" StatusText.TextColor3 = COLORS.Gold clearPath() moveTo(destination) return end -- OBSTACLE AVOIDANCE if AvoidEnabled then if WallBlocked then if not CurrentPath and not ComputingPath then computePath(destination, false) end elseif CurrentPath then clearPath() end if CurrentPath then followPath() elseif not hasObstacle(destination) then moveTo(destination) elseif not ComputingPath then computePath(destination, false) end else moveTo(destination) end -- STUCK DETECTION if LastRootPosition then local moved = (Root.Position - LastRootPosition).Magnitude if moved < 0.12 then StuckTimer += dt else StuckTimer = 0 end if StuckTimer >= SETTINGS.StuckTime then StuckTimer = 0 clearPath() BypassPosition = nil LastBypassTime = 0 end end LastRootPosition = Root.Position end) print("FROST FARM V12 PREMIUM EDITION LOADED")