--================================================== -- TRIBE SURVIVAL HUB V4 + SPEED -- ROBLOX STUDIO - LOCALSCRIPT --================================================== local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local VirtualUser = game:GetService("VirtualUser") local Lighting = game:GetService("Lighting") local TweenService = game:GetService("TweenService") local LP = Players.LocalPlayer local PG = LP:WaitForChild("PlayerGui") --================================================== -- SETTINGS --================================================== local ESP = false local AIM = false local AUTO_FARM = false local FARM_SPEED = 16 local FARM_TYPE = "Wood" --================================================== -- SPEED --================================================== local SPEED = false local SPEED_DISTANCE = 2 local SPEED_MIN = 1 local SPEED_MAX = 10 local SPEED_INTERVAL = 0.12 local speedDragging = false --================================================== -- AI SETTINGS --================================================== local AI_TARGET_MODE = "AUTO" local AI_REACH_DISTANCE = 5 local AI_UPDATE = 0.35 local AI_WEAPON_INTERVAL = 0.3 local AI_PATH_RECOMPUTE = 0.8 local AI_LAST_PATH = 0 local AI_LAST_TARGET = nil local AI_WAYPOINT_INDEX = 1 local AI_WAYPOINTS = {} local AI_WEAPON = false --================================================== -- AIM --================================================== local AIM_TARGET = nil local AIM_DISTANCE = 60 local AIM_MIN_DISTANCE = 1 local AIM_MAX_DISTANCE = 60 local AIM_AUTO_ROTATE_OLD = true --================================================== -- LƯỚT --================================================== local POWER = false local POWER_DISTANCE = 10 local POWER_LOCK = false local POWER_COOLDOWN = false --================================================== -- ANTI SETTINGS --================================================== local ANTI_AFK = false local ANTI_WATER = false local ANTI_WATER_V2 = false local ANTI_SLOW = false local ANTI_SLOW_BASE_SPEED = nil local ANTI_SLOW_BETA = false local ANTI_SLOW_BASE_HIP = nil local ANTI_WATER_SCAN_INTERVAL = 1 local ANTI_WATER_FOLDER_NAME = "AntiWaterV2_Local" local AntiWaterFolder = nil local MISC_FULL_BRIGHT = false local MISC_PLAYER_WARNING = false local PLAYER_WARNING_DISTANCE = 200 local PlayerWarningGui = nil local PlayerWarningLabel = nil local BrightnessBackup = nil local WarningActivePlayers = {} local AntiWaterCache = {} local PART_SIZE = Vector3.new(0.01,0.009,0.01) local PART_OFFSET = Vector3.new(0,-3.05,0) --================================================== -- CACHE --================================================== local MAX_PLAYER = 3 local MAX_RESOURCE = 3 local RESOURCE_DELAY = 0.8 local PLAYER_DELAY = 0.5 local Cache = { Wood = {}, Stone = {}, Apple = {}, Food = {} } local PlayersCache = {} --================================================== -- CHARACTER --================================================== local Character local Humanoid local Root local AntiPart local function CreateAntiPart() if not ANTI_WATER then return end if not Character or not Character.Parent or not Root or not Root.Parent then return end if AntiPart then AntiPart:Destroy() AntiPart = nil end AntiPart = Instance.new("Part") AntiPart.Name = "AntiWaterPart" AntiPart.Size = PART_SIZE AntiPart.Transparency = 1 AntiPart.CanCollide = true AntiPart.CanTouch = false AntiPart.CanQuery = false AntiPart.Massless = true AntiPart.CastShadow = false AntiPart.Anchored = false AntiPart.CFrame = Root.CFrame * CFrame.new(PART_OFFSET) AntiPart.Parent = Character local Weld = Instance.new("WeldConstraint") Weld.Part0 = Root Weld.Part1 = AntiPart Weld.Parent = AntiPart end local function SetupCharacter(char) Character = char Humanoid = char:WaitForChild("Humanoid") Root = char:WaitForChild("HumanoidRootPart") AI_LAST_TARGET = nil AI_WAYPOINTS = {} AI_WAYPOINT_INDEX = 1 if AntiPart then AntiPart:Destroy() AntiPart = nil end task.wait(0.1) if ANTI_WATER then CreateAntiPart() end if AIM then AIM_AUTO_ROTATE_OLD = Humanoid.AutoRotate Humanoid.AutoRotate = false end if ANTI_SLOW_BETA then ANTI_SLOW_BASE_HIP = Humanoid.HipHeight Humanoid.HipHeight = ANTI_SLOW_BASE_HIP + 0.1 end if ANTI_SLOW then ANTI_SLOW_BASE_SPEED = Humanoid.WalkSpeed Humanoid.WalkSpeed = 19 end end if LP.Character then SetupCharacter(LP.Character) end LP.CharacterAdded:Connect(SetupCharacter) --================================================== -- REMOVE OLD GUI --================================================== local Old = PG:FindFirstChild("TribeSurvivalHub") if Old then Old:Destroy() end --================================================== -- GUI --================================================== local Gui = Instance.new("ScreenGui") Gui.Name = "TribeSurvivalHub" Gui.ResetOnSpawn = false Gui.IgnoreGuiInset = true Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Gui.Parent = PG --================================================== -- MAIN --================================================== local Main = Instance.new("Frame") Main.Name = "Main" Main.Size = UDim2.fromOffset(430,370) Main.Position = UDim2.new(0.5,-215,0.25,0) Main.BackgroundColor3 = Color3.fromRGB(14,19,30) Main.BorderSizePixel = 0 Main.Active = true Main.Parent = Gui -- Animation scale: pop-in / pop-out local MainScale = Instance.new("UIScale") MainScale.Scale = 0.94 MainScale.Parent = Main local OPEN_TWEEN = TweenInfo.new(0.24, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local CLOSE_TWEEN = TweenInfo.new(0.16, Enum.EasingStyle.Quad, Enum.EasingDirection.In) local TAB_TWEEN = TweenInfo.new(0.18, Enum.EasingStyle.Quart, Enum.EasingDirection.Out) local function PlayTween(object, info, properties) local tween = TweenService:Create(object, info, properties) tween:Play() return tween end -- Press-and-hold feedback: gently shrink the button and brighten its border. local PRESS_TWEEN = TweenInfo.new(0.08, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local RELEASE_TWEEN = TweenInfo.new(0.14, Enum.EasingStyle.Back, Enum.EasingDirection.Out) local function AddPressAnimation(button) local scale = Instance.new("UIScale") scale.Scale = 1 scale.Parent = button local stroke = button:FindFirstChildOfClass("UIStroke") local normalStrokeColor = stroke and stroke.Color or nil local normalStrokeTransparency = stroke and stroke.Transparency or nil local function isPress(input) return input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch end button.InputBegan:Connect(function(input) if not isPress(input) then return end PlayTween(scale, PRESS_TWEEN, {Scale = 0.94}) if stroke then PlayTween(stroke, PRESS_TWEEN, { Color = Color3.fromRGB(90, 210, 255), Transparency = 0.05 }) end end) button.InputEnded:Connect(function(input) if not isPress(input) then return end PlayTween(scale, RELEASE_TWEEN, {Scale = 1}) if stroke and normalStrokeColor then PlayTween(stroke, RELEASE_TWEEN, { Color = normalStrokeColor, Transparency = normalStrokeTransparency }) end end) end local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0,15) MainCorner.Parent = Main local MainStroke = Instance.new("UIStroke") MainStroke.Thickness = 1.8 MainStroke.Color = Color3.fromRGB(0,190,255) MainStroke.Transparency = 0.08 MainStroke.Parent = Main local MainGradient = Instance.new("UIGradient") MainGradient.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(20,29,46)), ColorSequenceKeypoint.new(1, Color3.fromRGB(10,13,22)) }) MainGradient.Rotation = 90 MainGradient.Parent = Main local HeaderLine = Instance.new("Frame") HeaderLine.Name = "HeaderLine" HeaderLine.Size = UDim2.new(1,-20,0,1) HeaderLine.Position = UDim2.fromOffset(10,39) HeaderLine.BackgroundColor3 = Color3.fromRGB(0,175,255) HeaderLine.BackgroundTransparency = 0.35 HeaderLine.BorderSizePixel = 0 HeaderLine.Parent = Main --================================================== -- TITLE --================================================== local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1,-80,0,21) Title.Position = UDim2.fromOffset(12,0) Title.BackgroundTransparency = 1 Title.Text = "⚡ TRIBE SURVIVAL V4" Title.TextColor3 = Color3.new(1,1,1) Title.Font = Enum.Font.GothamBold Title.TextSize = 15 Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = Main local Subtitle = Instance.new("TextLabel") Subtitle.Size = UDim2.new(1,-90,0,14) Subtitle.Position = UDim2.fromOffset(13,20) Subtitle.BackgroundTransparency = 1 Subtitle.Text = "SURVIVAL CONTROL PANEL • V4" Subtitle.TextColor3 = Color3.fromRGB(105,170,205) Subtitle.Font = Enum.Font.GothamMedium Subtitle.TextSize = 8 Subtitle.TextXAlignment = Enum.TextXAlignment.Left Subtitle.Parent = Main --================================================== -- HIDE --================================================== local Hide = Instance.new("TextButton") Hide.Size = UDim2.fromOffset(30,28) Hide.Position = UDim2.new(1,-36,0,4) Hide.BackgroundColor3 = Color3.fromRGB(20,95,135) Hide.Text = "-" Hide.TextColor3 = Color3.new(1,1,1) Hide.Font = Enum.Font.GothamBold Hide.TextSize = 16 Hide.BorderSizePixel = 0 Hide.Parent = Main local HideCorner = Instance.new("UICorner") HideCorner.CornerRadius = UDim.new(0,9) HideCorner.Parent = Hide AddPressAnimation(Hide) --================================================== -- SIDEBAR --================================================== local Sidebar = Instance.new("Frame") Sidebar.Size = UDim2.new(0,108,1,-50) Sidebar.Position = UDim2.fromOffset(8,43) Sidebar.BackgroundColor3 = Color3.fromRGB(16,25,39) Sidebar.BorderSizePixel = 0 Sidebar.Parent = Main local SidebarCorner = Instance.new("UICorner") SidebarCorner.CornerRadius = UDim.new(0,11) local SidebarStroke = Instance.new("UIStroke") SidebarStroke.Color = Color3.fromRGB(44,87,119) SidebarStroke.Transparency = 0.45 SidebarStroke.Thickness = 1 SidebarStroke.Parent = Sidebar SidebarCorner.Parent = Sidebar --================================================== -- CONTENT --================================================== local Content = Instance.new("Frame") Content.Size = UDim2.new(1,-128,1,-50) Content.Position = UDim2.fromOffset(120,43) Content.BackgroundColor3 = Color3.fromRGB(17,24,36) Content.BorderSizePixel = 0 Content.ClipsDescendants = true Content.Parent = Main local ContentCorner = Instance.new("UICorner") ContentCorner.CornerRadius = UDim.new(0,11) local ContentStroke = Instance.new("UIStroke") ContentStroke.Color = Color3.fromRGB(39,76,105) ContentStroke.Transparency = 0.5 ContentStroke.Thickness = 1 ContentStroke.Parent = Content ContentCorner.Parent = Content --================================================== -- PAGE SYSTEM --================================================== local Pages = {} local function CreatePage(name) local Page = Instance.new("ScrollingFrame") Page.Name = name Page.Size = UDim2.fromScale(1,1) Page.BackgroundTransparency = 1 Page.BorderSizePixel = 0 Page.ScrollBarThickness = 3 Page.CanvasSize = UDim2.new(0,0,0,450) Page.Visible = false Page.Parent = Content Pages[name] = Page return Page end local MainPage = CreatePage("MAIN") local AimPage = CreatePage("AIM") local SpeedPage = CreatePage("SPEED") local AntiPage = CreatePage("ANTI") local MiscPage = CreatePage("MISC") local OptimizePage = CreatePage("TỐI ƯU") --================================================== -- SIDEBAR BUTTON --================================================== local SidebarButtons = {} local function CreateSideButton(text,y) local Button = Instance.new("TextButton") Button.Size = UDim2.new(1,-10,0,35) Button.Position = UDim2.fromOffset(5,y) Button.BackgroundColor3 = Color3.fromRGB(27,39,56) Button.Text = text Button.TextColor3 = Color3.fromRGB(220,220,220) Button.Font = Enum.Font.GothamBold Button.TextSize = 10 Button.BorderSizePixel = 0 Button.Parent = Sidebar local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0,8) Corner.Parent = Button local Stroke = Instance.new("UIStroke") Stroke.Color = Color3.fromRGB(53,91,122) Stroke.Transparency = 0.65 Stroke.Thickness = 1 Stroke.Parent = Button AddPressAnimation(Button) SidebarButtons[text] = Button return Button end local MainTab = CreateSideButton("MAIN",5) local AimTab = CreateSideButton("AIM",41) local SpeedTab = CreateSideButton("SPEED",77) local AntiTab = CreateSideButton("ANTI",113) local MiscTab = CreateSideButton("MISC",149) local OptimizeTab = CreateSideButton("TỐI ƯU",185) --================================================== -- TAB SWITCH --================================================== local CurrentTab = nil local TabAnimating = false local function OpenTab(name) if CurrentTab == name or TabAnimating then return end CurrentTab = name TabAnimating = true for pageName, page in pairs(Pages) do if pageName == name then page.Visible = true page.Position = UDim2.fromOffset(12, 0) PlayTween(page, TAB_TWEEN, {Position = UDim2.fromOffset(0, 0)}) else page.Visible = false page.Position = UDim2.fromOffset(0, 0) end end for buttonName, button in pairs(SidebarButtons) do if buttonName == name then PlayTween(button, TAB_TWEEN, {BackgroundColor3 = Color3.fromRGB(0,135,205)}) button.TextColor3 = Color3.new(1,1,1) else PlayTween(button, TAB_TWEEN, {BackgroundColor3 = Color3.fromRGB(27,39,56)}) button.TextColor3 = Color3.fromRGB(220,220,220) end end task.delay(0.2, function() TabAnimating = false end) end MainTab.MouseButton1Click:Connect(function() OpenTab("MAIN") end) AimTab.MouseButton1Click:Connect(function() OpenTab("AIM") end) SpeedTab.MouseButton1Click:Connect(function() OpenTab("SPEED") end) AntiTab.MouseButton1Click:Connect(function() OpenTab("ANTI") end) MiscTab.MouseButton1Click:Connect(function() OpenTab("MISC") end) OptimizeTab.MouseButton1Click:Connect(function() OpenTab("TỐI ƯU") end) --================================================== -- HELPERS --================================================== local function PageTitle(parent,text) local Label = Instance.new("TextLabel") Label.Size = UDim2.new(1,-20,0,28) Label.Position = UDim2.fromOffset(10,7) Label.BackgroundTransparency = 1 Label.Text = text Label.TextColor3 = Color3.fromRGB(125,213,255) Label.Font = Enum.Font.GothamBold Label.TextSize = 15 Label.TextXAlignment = Enum.TextXAlignment.Left Label.Parent = parent local Accent = Instance.new("Frame") Accent.Size = UDim2.fromOffset(34,2) Accent.Position = UDim2.fromOffset(10,34) Accent.BackgroundColor3 = Color3.fromRGB(0,190,255) Accent.BorderSizePixel = 0 Accent.Parent = parent local AccentCorner = Instance.new("UICorner") AccentCorner.CornerRadius = UDim.new(1,0) AccentCorner.Parent = Accent return Label end local function CreateButton(parent,text,y) local Button = Instance.new("TextButton") Button.Size = UDim2.new(1,-20,0,34) Button.Position = UDim2.fromOffset(10,y) Button.BackgroundColor3 = Color3.fromRGB(29,42,60) Button.Text = text Button.TextColor3 = Color3.new(1,1,1) Button.Font = Enum.Font.GothamBold Button.TextSize = 11 Button.BorderSizePixel = 0 Button.Parent = parent local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0,9) Corner.Parent = Button local Stroke = Instance.new("UIStroke") Stroke.Color = Color3.fromRGB(54,103,139) Stroke.Transparency = 0.55 Stroke.Thickness = 1 Stroke.Parent = Button AddPressAnimation(Button) return Button end --================================================== -- MAIN PAGE --================================================== PageTitle(MainPage,"MAIN") local ESPButton = CreateButton(MainPage,"ESP : OFF",45) ESPButton.BackgroundColor3 = Color3.fromRGB(29,42,60) local FarmButton = CreateButton(MainPage,"AUTO MOVE : OFF",85) local FarmSelect = CreateButton(MainPage,"FARM: Wood ▼",125) local PowerButton = CreateButton(MainPage,"LƯỚT : OFF",165) local PowerDistanceLabel = Instance.new("TextLabel") PowerDistanceLabel.Size = UDim2.new(1,-20,0,20) PowerDistanceLabel.Position = UDim2.fromOffset(10,205) PowerDistanceLabel.BackgroundTransparency = 1 PowerDistanceLabel.Text = "LƯỚT DISTANCE: 10" PowerDistanceLabel.TextColor3 = Color3.fromRGB(200,200,200) PowerDistanceLabel.Font = Enum.Font.GothamBold PowerDistanceLabel.TextSize = 10 PowerDistanceLabel.Parent = MainPage local FarmTypes = {"Wood","Stone","Apple","Food","Player"} local FarmIndex = 1 FarmSelect.MouseButton1Click:Connect(function() FarmIndex += 1 if FarmIndex > #FarmTypes then FarmIndex = 1 end FARM_TYPE = FarmTypes[FarmIndex] FarmSelect.Text = "FARM: "..FARM_TYPE.." ▼" end) ESPButton.MouseButton1Click:Connect(function() ESP = not ESP ESPButton.Text = ESP and "ESP : ON" or "ESP : OFF" ESPButton.BackgroundColor3 = ESP and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end) FarmButton.MouseButton1Click:Connect(function() AUTO_FARM = not AUTO_FARM FarmButton.Text = AUTO_FARM and "AUTO MOVE : ON" or "AUTO MOVE : OFF" FarmButton.BackgroundColor3 = AUTO_FARM and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end) local function SetPower(value) POWER = value PowerButton.Text = POWER and "LƯỚT : ON" or "LƯỚT : OFF" PowerButton.BackgroundColor3 = POWER and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end PowerButton.MouseButton1Click:Connect(function() SetPower(not POWER) end) --================================================== -- LƯỚT SLIDER --================================================== local PowerSlider = Instance.new("Frame") PowerSlider.Size = UDim2.new(1,-20,0,14) PowerSlider.Position = UDim2.fromOffset(10,230) PowerSlider.BackgroundColor3 = Color3.fromRGB(55,55,55) PowerSlider.BorderSizePixel = 0 PowerSlider.Active = true PowerSlider.Parent = MainPage local PSC = Instance.new("UICorner") PSC.CornerRadius = UDim.new(0,7) PSC.Parent = PowerSlider local PowerKnob = Instance.new("Frame") PowerKnob.Size = UDim2.fromOffset(14,14) PowerKnob.Position = UDim2.new(0,-7,0,0) PowerKnob.BackgroundColor3 = Color3.fromRGB(0,170,255) PowerKnob.BorderSizePixel = 0 PowerKnob.Parent = PowerSlider local PKC = Instance.new("UICorner") PKC.CornerRadius = UDim.new(0,7) PKC.Parent = PowerKnob local powerDragging = false local function SetPowerDistance(x) local left = PowerSlider.AbsolutePosition.X local width = PowerSlider.AbsoluteSize.X if width <= 0 then return end local scale = math.clamp((x-left)/width,0,1) POWER_DISTANCE = math.floor(10 + scale*20 + 0.5) PowerKnob.Position = UDim2.new(scale,-7,0,0) PowerDistanceLabel.Text = "LƯỚT DISTANCE: "..POWER_DISTANCE end PowerSlider.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then powerDragging = true SetPowerDistance(input.Position.X) end end) UIS.InputChanged:Connect(function(input) if not powerDragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then SetPowerDistance(input.Position.X) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then powerDragging = false end end) --================================================== -- AIM PAGE --================================================== PageTitle(AimPage,"AIM") local AIMButton = CreateButton(AimPage,"AIM : OFF",45) local AIMInfo = Instance.new("TextLabel") AIMInfo.Size = UDim2.new(1,-20,0,35) AIMInfo.Position = UDim2.fromOffset(10,83) AIMInfo.BackgroundTransparency = 1 AIMInfo.Text = "Aim người chơi gần nhất\nChỉ xoay ngang" AIMInfo.TextColor3 = Color3.fromRGB(190,190,190) AIMInfo.Font = Enum.Font.Gotham AIMInfo.TextSize = 10 AIMInfo.TextXAlignment = Enum.TextXAlignment.Left AIMInfo.Parent = AimPage local AIMDistanceLabel = Instance.new("TextLabel") AIMDistanceLabel.Size = UDim2.new(1,-20,0,20) AIMDistanceLabel.Position = UDim2.fromOffset(10,125) AIMDistanceLabel.BackgroundTransparency = 1 AIMDistanceLabel.Text = "AIM DISTANCE: 60" AIMDistanceLabel.TextColor3 = Color3.fromRGB(210,210,210) AIMDistanceLabel.Font = Enum.Font.GothamBold AIMDistanceLabel.TextSize = 11 AIMDistanceLabel.TextXAlignment = Enum.TextXAlignment.Left AIMDistanceLabel.Parent = AimPage local AIMSlider = Instance.new("Frame") AIMSlider.Size = UDim2.new(1,-20,0,16) AIMSlider.Position = UDim2.fromOffset(10,150) AIMSlider.BackgroundColor3 = Color3.fromRGB(55,55,55) AIMSlider.BorderSizePixel = 0 AIMSlider.Active = true AIMSlider.Parent = AimPage local AISC = Instance.new("UICorner") AISC.CornerRadius = UDim.new(0,8) AISC.Parent = AIMSlider local AIMKnob = Instance.new("Frame") AIMKnob.Size = UDim2.fromOffset(16,16) AIMKnob.Position = UDim2.new(1,-8,0,0) AIMKnob.BackgroundColor3 = Color3.fromRGB(0,170,255) AIMKnob.BorderSizePixel = 0 AIMKnob.Parent = AIMSlider local AIKC = Instance.new("UICorner") AIKC.CornerRadius = UDim.new(0,8) AIKC.Parent = AIMKnob local AIMDragging = false local function SetAIMDistance(x) local left = AIMSlider.AbsolutePosition.X local width = AIMSlider.AbsoluteSize.X if width <= 0 then return end local scale = math.clamp((x-left)/width,0,1) AIM_DISTANCE = math.floor(AIM_MIN_DISTANCE + (AIM_MAX_DISTANCE-AIM_MIN_DISTANCE)*scale + 0.5) AIMKnob.Position = UDim2.new(scale,-8,0,0) AIMDistanceLabel.Text = "AIM DISTANCE: "..AIM_DISTANCE end AIMSlider.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then AIMDragging = true SetAIMDistance(input.Position.X) end end) UIS.InputChanged:Connect(function(input) if not AIMDragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then SetAIMDistance(input.Position.X) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then AIMDragging = false end end) local function GetCharacterData(player) if not player or player == LP then return nil end local character = player.Character if not character or not character.Parent then return nil end local root = character:FindFirstChild("HumanoidRootPart") local humanoid = character:FindFirstChildOfClass("Humanoid") if not root or not humanoid or humanoid.Health <= 0 then return nil end return character,root,humanoid end local function FindNearestPlayer() if not Root then return nil end local nearest local nearestDistance = AIM_DISTANCE for _,player in ipairs(Players:GetPlayers()) do if player ~= LP then local _,targetRoot,targetHumanoid = GetCharacterData(player) if targetRoot and targetHumanoid then local distance = (Root.Position-targetRoot.Position).Magnitude if distance <= nearestDistance then nearestDistance = distance nearest = player end end end end return nearest end AIMButton.MouseButton1Click:Connect(function() AIM = not AIM AIMButton.Text = AIM and "AIM : ON" or "AIM : OFF" AIMButton.BackgroundColor3 = AIM and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) if Humanoid then if AIM then AIM_AUTO_ROTATE_OLD = Humanoid.AutoRotate Humanoid.AutoRotate = false else Humanoid.AutoRotate = AIM_AUTO_ROTATE_OLD end end if not AIM then AIM_TARGET = nil end end) task.spawn(function() while Gui.Parent do AIM_TARGET = AIM and FindNearestPlayer() or nil task.wait(0.05) end end) RunService.RenderStepped:Connect(function() if not AIM or not Root or not Humanoid then return end Humanoid.AutoRotate = false local target = AIM_TARGET if not target then return end local _,targetRoot,targetHumanoid = GetCharacterData(target) if not targetRoot or not targetHumanoid then AIM_TARGET = nil return end local distance = (Root.Position-targetRoot.Position).Magnitude if distance > AIM_DISTANCE then AIM_TARGET = nil return end local targetPosition = Vector3.new( targetRoot.Position.X, Root.Position.Y, targetRoot.Position.Z ) if (targetPosition-Root.Position).Magnitude > 0.05 then Root.CFrame = CFrame.lookAt(Root.Position,targetPosition) end end) --================================================== -- SPEED PAGE --================================================== PageTitle(SpeedPage,"SPEED") local SpeedButton = CreateButton( SpeedPage, "SPEED : OFF", 45 ) local SpeedInfo = Instance.new("TextLabel") SpeedInfo.Size = UDim2.new(1,-20,0,55) SpeedInfo.Position = UDim2.fromOffset(10,85) SpeedInfo.BackgroundTransparency = 1 SpeedInfo.Text = "Di chuyển liên tục về phía trước\n" .. "Khoảng cách mỗi bước: 1 - 10 studs\n" .. "Nút nhỏ sẽ xuất hiện khi SPEED bật" SpeedInfo.TextColor3 = Color3.fromRGB(190,190,190) SpeedInfo.Font = Enum.Font.Gotham SpeedInfo.TextSize = 10 SpeedInfo.TextXAlignment = Enum.TextXAlignment.Left SpeedInfo.TextYAlignment = Enum.TextYAlignment.Top SpeedInfo.Parent = SpeedPage local SpeedDistanceLabel = Instance.new("TextLabel") SpeedDistanceLabel.Size = UDim2.new(1,-20,0,20) SpeedDistanceLabel.Position = UDim2.fromOffset(10,150) SpeedDistanceLabel.BackgroundTransparency = 1 SpeedDistanceLabel.Text = "SPEED DISTANCE: 2" SpeedDistanceLabel.TextColor3 = Color3.fromRGB(210,210,210) SpeedDistanceLabel.Font = Enum.Font.GothamBold SpeedDistanceLabel.TextSize = 11 SpeedDistanceLabel.TextXAlignment = Enum.TextXAlignment.Left SpeedDistanceLabel.Parent = SpeedPage local SpeedSlider = Instance.new("Frame") SpeedSlider.Size = UDim2.new(1,-20,0,16) SpeedSlider.Position = UDim2.fromOffset(10,178) SpeedSlider.BackgroundColor3 = Color3.fromRGB(55,55,55) SpeedSlider.BorderSizePixel = 0 SpeedSlider.Active = true SpeedSlider.Parent = SpeedPage local SpeedSliderCorner = Instance.new("UICorner") SpeedSliderCorner.CornerRadius = UDim.new(0,8) SpeedSliderCorner.Parent = SpeedSlider local SpeedKnob = Instance.new("Frame") SpeedKnob.Size = UDim2.fromOffset(16,16) SpeedKnob.Position = UDim2.new( (SPEED_DISTANCE-SPEED_MIN)/(SPEED_MAX-SPEED_MIN), -8, 0, 0 ) SpeedKnob.BackgroundColor3 = Color3.fromRGB(0,170,255) SpeedKnob.BorderSizePixel = 0 SpeedKnob.Parent = SpeedSlider local SpeedKnobCorner = Instance.new("UICorner") SpeedKnobCorner.CornerRadius = UDim.new(0,8) SpeedKnobCorner.Parent = SpeedKnob local function SetSpeedDistance(x) local left = SpeedSlider.AbsolutePosition.X local width = SpeedSlider.AbsoluteSize.X if width <= 0 then return end local scale = math.clamp((x-left)/width,0,1) SPEED_DISTANCE = math.floor( SPEED_MIN + (SPEED_MAX-SPEED_MIN)*scale + 0.5 ) local knobScale = (SPEED_DISTANCE-SPEED_MIN) / (SPEED_MAX-SPEED_MIN) SpeedKnob.Position = UDim2.new( knobScale, -8, 0, 0 ) SpeedDistanceLabel.Text = "SPEED DISTANCE: "..SPEED_DISTANCE end SpeedSlider.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then speedDragging = true SetSpeedDistance(input.Position.X) end end) UIS.InputChanged:Connect(function(input) if not speedDragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then SetSpeedDistance(input.Position.X) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then speedDragging = false end end) --================================================== -- SPEED SMALL BUTTON --================================================== local SmallSpeed = Instance.new("TextButton") SmallSpeed.Name = "SpeedSmallButton" SmallSpeed.Size = UDim2.fromOffset(58,58) SmallSpeed.Position = UDim2.new(0.5,-29,0.60,0) SmallSpeed.BackgroundColor3 = Color3.fromRGB(0,170,255) SmallSpeed.Text = "SPEED" SmallSpeed.TextColor3 = Color3.new(1,1,1) SmallSpeed.TextSize = 11 SmallSpeed.Font = Enum.Font.GothamBold SmallSpeed.BorderSizePixel = 0 SmallSpeed.Active = true SmallSpeed.Visible = false SmallSpeed.ZIndex = 1000 SmallSpeed.Parent = Gui local SmallSpeedCorner = Instance.new("UICorner") SmallSpeedCorner.CornerRadius = UDim.new(0,14) SmallSpeedCorner.Parent = SmallSpeed local SmallSpeedStroke = Instance.new("UIStroke") SmallSpeedStroke.Thickness = 2 SmallSpeedStroke.Color = Color3.new(1,1,1) SmallSpeedStroke.Parent = SmallSpeed local function SetSpeed(value) SPEED = value SpeedButton.Text = SPEED and "SPEED : ON" or "SPEED : OFF" SpeedButton.BackgroundColor3 = SPEED and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) SmallSpeed.Visible = SPEED SmallSpeed.BackgroundColor3 = SPEED and Color3.fromRGB(0,170,255) or Color3.fromRGB(50,50,50) end SpeedButton.MouseButton1Click:Connect(function() SetSpeed(not SPEED) end) SmallSpeed.MouseButton1Click:Connect(function() SetSpeed(not SPEED) end) --================================================== -- SPEED MOVEMENT --================================================== task.spawn(function() while Gui.Parent do if SPEED and Root and Root.Parent then local character = LP.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.Health > 0 then local direction = Root.CFrame.LookVector local horizontal = Vector3.new( direction.X, 0, direction.Z ) if horizontal.Magnitude > 0.001 then horizontal = horizontal.Unit Root.CFrame = Root.CFrame + horizontal * SPEED_DISTANCE end end end task.wait(SPEED_INTERVAL) end end) --================================================== -- RESOURCE FUNCTIONS --================================================== local function GetRoot(obj) if obj:IsA("BasePart") then return obj end if obj:IsA("Model") then return obj.PrimaryPart or obj:FindFirstChildWhichIsA("BasePart",true) end end local function GetType(obj) local n = obj.Name:lower() if n:find("wood") or n:find("tree") or n:find("log") then return "Wood" end if n:find("stone") or n:find("rock") or n:find("ore") then return "Stone" end if n:find("apple") then return "Apple" end if n:find("food") or n:find("meat") or n:find("berry") or n:find("fish") then return "Food" end end local function ScanResources() local NewCache = { Wood = {}, Stone = {}, Apple = {}, Food = {} } for _,obj in ipairs(workspace:GetDescendants()) do if obj:IsA("BasePart") or obj:IsA("Model") then local t = GetType(obj) local r = t and GetRoot(obj) if t and r then table.insert(NewCache[t],{ Root = r, Type = t, Name = t }) end end end Cache = NewCache end --================================================== -- PLAYER CACHE --================================================== local function ScanPlayers() if not Root then PlayersCache = {} return end local list = {} for _,p in ipairs(Players:GetPlayers()) do if p ~= LP then local c = p.Character local r = c and c:FindFirstChild("HumanoidRootPart") local h = c and c:FindFirstChildOfClass("Humanoid") if r and h and h.Health > 0 then table.insert(list,{ Player = p, Root = r, Type = "Player", Name = p.DisplayName, Distance = (Root.Position-r.Position).Magnitude }) end end end table.sort(list,function(a,b) return a.Distance < b.Distance end) PlayersCache = {} for i = 1,math.min(MAX_PLAYER,#list) do PlayersCache[i] = list[i] end end --================================================== -- FARM TARGET --================================================== local function GetFarmTarget() if not Root then return nil end if FARM_TYPE == "Player" then local best local bestDistance = math.huge for _,data in ipairs(PlayersCache) do if data.Root and data.Root.Parent then local d = (Root.Position-data.Root.Position).Magnitude if d < bestDistance then bestDistance = d best = data end end end return best end local best local bestDistance = math.huge for _,data in ipairs(Cache[FARM_TYPE] or {}) do if data.Root and data.Root.Parent then local d = (Root.Position-data.Root.Position).Magnitude if d < bestDistance then bestDistance = d best = data end end end return best end --================================================== -- AI TARGET --================================================== local function GetNearestResource() if not Root then return nil end local best local bestDistance = math.huge for resourceType,list in pairs(Cache) do for _,data in ipairs(list) do if data.Root and data.Root.Parent then local d = (Root.Position-data.Root.Position).Magnitude if d < bestDistance then bestDistance = d best = { Root = data.Root, Type = resourceType, Name = resourceType, Distance = d } end end end end return best end local function GetNearestAIPlayer() if not Root then return nil end local best local bestDistance = math.huge for _,data in ipairs(PlayersCache) do if data.Root and data.Root.Parent then local d = (Root.Position-data.Root.Position).Magnitude if d < bestDistance then bestDistance = d best = data end end end return best end local function GetAITarget() if AI_TARGET_MODE == "RESOURCE" then return GetNearestResource() end if AI_TARGET_MODE == "PLAYER" then return GetNearestAIPlayer() end local resource = GetNearestResource() local player = GetNearestAIPlayer() if not resource then return player end if not player then return resource end if resource.Distance <= player.Distance then return resource end return player end --================================================== -- RAYCAST --================================================== local function IsObstacleAhead(targetPosition) if not Root then return false end local direction = targetPosition-Root.Position if direction.Magnitude <= 2 then return false end local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = {Character} local result = workspace:Raycast( Root.Position+Vector3.new(0,2,0), direction.Unit*math.min(direction.Magnitude,8), params ) return result ~= nil end --================================================== -- PATHFINDING --================================================== local function ComputeAIPath(targetPosition) if not Root or not Humanoid then return false end local path = PathfindingService:CreatePath({ AgentRadius = 2, AgentHeight = 5, AgentCanJump = true, AgentCanClimb = true, WaypointSpacing = 3 }) local success = pcall(function() path:ComputeAsync(Root.Position,targetPosition) end) if not success or path.Status ~= Enum.PathStatus.Success then AI_WAYPOINTS = {} AI_WAYPOINT_INDEX = 1 return false end AI_WAYPOINTS = path:GetWaypoints() AI_WAYPOINT_INDEX = 1 AI_LAST_PATH = os.clock() return #AI_WAYPOINTS > 0 end --================================================== -- MOVE AI --================================================== local function MoveAI(target) if not Humanoid or not Root or not target or not target.Root or not target.Root.Parent then return end local targetPosition = target.Root.Position local distance = (Root.Position-targetPosition).Magnitude if distance <= AI_REACH_DISTANCE then Humanoid:MoveTo(Root.Position) return end local needNewPath = AI_LAST_TARGET ~= target.Root or #AI_WAYPOINTS == 0 or AI_WAYPOINT_INDEX > #AI_WAYPOINTS or os.clock()-AI_LAST_PATH > AI_PATH_RECOMPUTE if needNewPath then AI_LAST_TARGET = target.Root ComputeAIPath(targetPosition) end local waypoint = AI_WAYPOINTS[AI_WAYPOINT_INDEX] if waypoint then if IsObstacleAhead(waypoint.Position) then ComputeAIPath(targetPosition) waypoint = AI_WAYPOINTS[AI_WAYPOINT_INDEX] end if waypoint then if waypoint.Action == Enum.PathWaypointAction.Jump then Humanoid.Jump = true end Humanoid:MoveTo(waypoint.Position) if (Root.Position-waypoint.Position).Magnitude <= 3 then AI_WAYPOINT_INDEX += 1 end end else Humanoid:MoveTo(targetPosition) end end --================================================== -- AUTO WEAPON --================================================== local function FindTool() if Character then for _,obj in ipairs(Character:GetChildren()) do if obj:IsA("Tool") then return obj end end end local Backpack = LP:FindFirstChildOfClass("Backpack") if Backpack then for _,obj in ipairs(Backpack:GetChildren()) do if obj:IsA("Tool") then return obj end end end return nil end local function EquipAndUseTool() if not AI_WEAPON then return end if not Character or not Humanoid then return end local Tool = FindTool() if not Tool then return end if Tool.Parent ~= Character then pcall(function() Humanoid:EquipTool(Tool) end) task.wait(0.05) end if Tool.Parent == Character then pcall(function() Tool:Activate() end) end end --================================================== -- AUTO FARM LOOP --================================================== task.spawn(function() while Gui.Parent do if AUTO_FARM then if Humanoid and Root then Humanoid.WalkSpeed = FARM_SPEED local target = GetFarmTarget() if target and target.Root then Humanoid:MoveTo(target.Root.Position) end end end task.wait(0.15) end end) --================================================== -- LƯỚT USE --================================================== local function UsePower() if not POWER or POWER_COOLDOWN then return end local char = LP.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then return end POWER_COOLDOWN = true root.CFrame = root.CFrame + root.CFrame.LookVector * POWER_DISTANCE task.delay(2,function() POWER_COOLDOWN = false end) end --================================================== -- POWER SMALL BUTTON --================================================== local SmallPower = Instance.new("TextButton") SmallPower.Name = "PowerSmallButton" SmallPower.Size = UDim2.fromOffset(52,52) SmallPower.Position = UDim2.new(0.5,-26,0.72,0) SmallPower.BackgroundColor3 = Color3.fromRGB(0,170,255) SmallPower.Text = "⚡" SmallPower.TextColor3 = Color3.new(1,1,1) SmallPower.TextSize = 24 SmallPower.Font = Enum.Font.GothamBold SmallPower.BorderSizePixel = 0 SmallPower.Active = true SmallPower.Visible = false SmallPower.ZIndex = 1000 SmallPower.Parent = Gui local SPC = Instance.new("UICorner") SPC.CornerRadius = UDim.new(0,13) SPC.Parent = SmallPower local SPS = Instance.new("UIStroke") SPS.Thickness = 2 SPS.Color = Color3.new(1,1,1) SPS.Parent = SmallPower SmallPower.MouseButton1Click:Connect(UsePower) --================================================== -- LƯỚT LOCK --================================================== local PowerLockButton = CreateButton( MainPage, "🔓 LƯỚT POSITION: UNLOCK", 310 ) PowerLockButton.MouseButton1Click:Connect(function() POWER_LOCK = not POWER_LOCK if POWER_LOCK then PowerLockButton.Text = "🔒 LƯỚT POSITION: LOCK" PowerLockButton.BackgroundColor3 = Color3.fromRGB(180,50,50) else PowerLockButton.Text = "🔓 LƯỚT POSITION: UNLOCK" PowerLockButton.BackgroundColor3 = Color3.fromRGB(29,42,60) end end) task.spawn(function() while Gui.Parent do SmallPower.Visible = POWER task.wait(0.1) end end) --================================================== -- ANTI PAGE --================================================== PageTitle(AntiPage,"ANTI") local AntiAFKButton = CreateButton(AntiPage,"ANTI AFK : OFF",45) AntiAFKButton.BackgroundColor3 = Color3.fromRGB(29,42,60) local AntiWaterButton = CreateButton( AntiPage, "ANTI WATER : OFF", 85 ) AntiWaterButton.BackgroundColor3 = Color3.fromRGB(29,42,60) local AntiWaterV2Button = CreateButton( AntiPage, "ANTI WATER V2 : OFF", 125 ) AntiWaterV2Button.BackgroundColor3 = Color3.fromRGB(29,42,60) local AntiSlowButton = CreateButton(AntiPage,"ANTI SLOW : OFF (SPEED 19)",165) local AntiSlowBetaButton = CreateButton(AntiPage,"ANTI SLOW BETA : OFF (Y +0.1)",205) local function SetAntiSlow(enabled) ANTI_SLOW = enabled if enabled and Humanoid and Humanoid.Parent then ANTI_SLOW_BASE_SPEED = Humanoid.WalkSpeed elseif not enabled and Humanoid and Humanoid.Parent and ANTI_SLOW_BASE_SPEED ~= nil then Humanoid.WalkSpeed = ANTI_SLOW_BASE_SPEED ANTI_SLOW_BASE_SPEED = nil end AntiSlowButton.Text = "ANTI SLOW : "..(enabled and "ON" or "OFF").." (SPEED 19)" AntiSlowButton.BackgroundColor3 = enabled and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end AntiSlowButton.MouseButton1Click:Connect(function() SetAntiSlow(not ANTI_SLOW) end) local function SetAntiSlowBeta(enabled) ANTI_SLOW_BETA = enabled if Humanoid and Humanoid.Parent then if enabled then ANTI_SLOW_BASE_HIP = Humanoid.HipHeight Humanoid.HipHeight = ANTI_SLOW_BASE_HIP + 0.1 elseif ANTI_SLOW_BASE_HIP ~= nil then Humanoid.HipHeight = ANTI_SLOW_BASE_HIP ANTI_SLOW_BASE_HIP = nil end end AntiSlowBetaButton.Text = "ANTI SLOW BETA : "..(enabled and "ON" or "OFF").." (Y +0.1)" AntiSlowBetaButton.BackgroundColor3 = enabled and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end AntiSlowBetaButton.MouseButton1Click:Connect(function() SetAntiSlowBeta(not ANTI_SLOW_BETA) end) task.spawn(function() while Gui.Parent do if ANTI_SLOW and Humanoid and Humanoid.Parent and Humanoid.Health > 0 then Humanoid.WalkSpeed = 19 end if ANTI_SLOW_BETA and Humanoid and Humanoid.Parent then if ANTI_SLOW_BASE_HIP == nil then ANTI_SLOW_BASE_HIP = Humanoid.HipHeight end local targetHip = ANTI_SLOW_BASE_HIP + 0.1 if math.abs(Humanoid.HipHeight-targetHip) > 0.001 then Humanoid.HipHeight = targetHip end end task.wait(0.15) end end) --================================================== -- MISC PAGE --================================================== PageTitle(MiscPage,"MISC") local FullBrightButton = CreateButton(MiscPage,"FULL BRIGHTNESS : OFF",45) local PlayerWarningButton = CreateButton(MiscPage,"PLAYER WARNING 200M : OFF",85) local MiscInfo = Instance.new("TextLabel") MiscInfo.Size = UDim2.new(1,-20,0,48) MiscInfo.Position = UDim2.fromOffset(10,128) MiscInfo.BackgroundTransparency = 1 MiscInfo.Text = "Cảnh báo khi người chơi khác ở trong phạm vi 200 studs." MiscInfo.TextColor3 = Color3.fromRGB(180,180,180) MiscInfo.Font = Enum.Font.Gotham MiscInfo.TextSize = 10 MiscInfo.TextWrapped = true MiscInfo.TextXAlignment = Enum.TextXAlignment.Left MiscInfo.Parent = MiscPage local function SetFullBrightness(enabled) MISC_FULL_BRIGHT = enabled if enabled then if not BrightnessBackup then BrightnessBackup = { Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, FogEnd = Lighting.FogEnd, GlobalShadows = Lighting.GlobalShadows, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient } end Lighting.Brightness = 3 Lighting.ClockTime = 14 Lighting.FogEnd = 100000 Lighting.GlobalShadows = false Lighting.Ambient = Color3.fromRGB(180,180,180) Lighting.OutdoorAmbient = Color3.fromRGB(180,180,180) elseif BrightnessBackup then for property,value in pairs(BrightnessBackup) do Lighting[property] = value end BrightnessBackup = nil end FullBrightButton.Text = "FULL BRIGHTNESS : "..(enabled and "ON" or "OFF") FullBrightButton.BackgroundColor3 = enabled and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end FullBrightButton.MouseButton1Click:Connect(function() SetFullBrightness(not MISC_FULL_BRIGHT) end) PlayerWarningButton.MouseButton1Click:Connect(function() MISC_PLAYER_WARNING = not MISC_PLAYER_WARNING PlayerWarningButton.Text = "PLAYER WARNING 200M : "..(MISC_PLAYER_WARNING and "ON" or "OFF") PlayerWarningButton.BackgroundColor3 = MISC_PLAYER_WARNING and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) if not MISC_PLAYER_WARNING then WarningActivePlayers = {} if PlayerWarningGui then PlayerWarningGui.Enabled = false end elseif PlayerWarningGui then PlayerWarningGui.Enabled = true end end) PlayerWarningGui = Instance.new("ScreenGui") PlayerWarningGui.Name = "TribePlayerWarning" PlayerWarningGui.ResetOnSpawn = false PlayerWarningGui.Enabled = false PlayerWarningGui.Parent = PG PlayerWarningLabel = Instance.new("TextLabel") PlayerWarningLabel.AnchorPoint = Vector2.new(0.5,0) PlayerWarningLabel.Position = UDim2.new(0.5,0,0,45) PlayerWarningLabel.Size = UDim2.fromOffset(280,34) PlayerWarningLabel.BackgroundColor3 = Color3.fromRGB(35,25,25) PlayerWarningLabel.BackgroundTransparency = 0.15 PlayerWarningLabel.TextColor3 = Color3.fromRGB(255,100,100) PlayerWarningLabel.Font = Enum.Font.GothamBold PlayerWarningLabel.TextSize = 12 PlayerWarningLabel.Text = "" PlayerWarningLabel.Parent = PlayerWarningGui Instance.new("UICorner",PlayerWarningLabel).CornerRadius = UDim.new(0,8) task.spawn(function() while Gui.Parent do if MISC_PLAYER_WARNING and Root and Root.Parent then local nearest,nearestDistance = nil,PLAYER_WARNING_DISTANCE + 0.001 for _,player in ipairs(Players:GetPlayers()) do if player ~= LP and player.Character then local otherRoot = player.Character:FindFirstChild("HumanoidRootPart") local otherHumanoid = player.Character:FindFirstChildOfClass("Humanoid") if otherRoot and otherHumanoid and otherHumanoid.Health > 0 then local distance = (Root.Position-otherRoot.Position).Magnitude if distance <= PLAYER_WARNING_DISTANCE and distance < nearestDistance then nearest,nearestDistance = player,distance end end end end if nearest then PlayerWarningGui.Enabled = true PlayerWarningLabel.Text = "⚠ PLAYER NEARBY: "..nearest.Name.." ("..math.floor(nearestDistance).." studs)" else PlayerWarningGui.Enabled = false end else PlayerWarningGui.Enabled = false end task.wait(0.25) end end) --================================================== -- OPTIMIZE PAGE --================================================== local OPTIMIZE_ENABLED = false local OptimizeSaved = {} local OptimizeConnections = {} PageTitle(OptimizePage,"TỐI ƯU") local OptimizeButton = CreateButton(OptimizePage,"TỐI ƯU SCRIPT : OFF",45) local OptimizeInfo = Instance.new("TextLabel") OptimizeInfo.Size = UDim2.new(1,-20,0,66) OptimizeInfo.Position = UDim2.fromOffset(10,88) OptimizeInfo.BackgroundTransparency = 1 OptimizeInfo.Text = "Giảm hiệu ứng hình ảnh và bóng đổ cục bộ để hỗ trợ FPS. Có thể bật/tắt và khôi phục trạng thái ban đầu." OptimizeInfo.TextColor3 = Color3.fromRGB(180,180,180) OptimizeInfo.Font = Enum.Font.Gotham OptimizeInfo.TextSize = 10 OptimizeInfo.TextWrapped = true OptimizeInfo.TextXAlignment = Enum.TextXAlignment.Left OptimizeInfo.TextYAlignment = Enum.TextYAlignment.Top OptimizeInfo.Parent = OptimizePage local function ApplyLocalOptimization(instance) if not OPTIMIZE_ENABLED or not instance or not instance.Parent then return end local ok, property, oldValue = pcall(function() if instance:IsA("ParticleEmitter") or instance:IsA("Trail") or instance:IsA("Beam") or instance:IsA("Smoke") or instance:IsA("Fire") or instance:IsA("Sparkles") then return "Enabled", instance.Enabled elseif instance:IsA("PostEffect") then return "Enabled", instance.Enabled elseif instance:IsA("BasePart") then return "CastShadow", instance.CastShadow end return nil, nil end) if ok and property then if OptimizeSaved[instance] == nil then OptimizeSaved[instance] = {property = property, value = oldValue} end pcall(function() instance[property] = false end) end end local function SetOptimize(enabled) OPTIMIZE_ENABLED = enabled if enabled then for _, instance in ipairs(workspace:GetDescendants()) do ApplyLocalOptimization(instance) end for _, instance in ipairs(Lighting:GetDescendants()) do ApplyLocalOptimization(instance) end if not OptimizeConnections.WorkspaceAdded then OptimizeConnections.WorkspaceAdded = workspace.DescendantAdded:Connect(ApplyLocalOptimization) OptimizeConnections.LightingAdded = Lighting.DescendantAdded:Connect(ApplyLocalOptimization) end else if OptimizeConnections.WorkspaceAdded then OptimizeConnections.WorkspaceAdded:Disconnect() OptimizeConnections.WorkspaceAdded = nil end if OptimizeConnections.LightingAdded then OptimizeConnections.LightingAdded:Disconnect() OptimizeConnections.LightingAdded = nil end for instance, saved in pairs(OptimizeSaved) do if instance and instance.Parent then pcall(function() instance[saved.property] = saved.value end) end end table.clear(OptimizeSaved) end OptimizeButton.Text = "TỐI ƯU SCRIPT : " .. (enabled and "ON" or "OFF") OptimizeButton.BackgroundColor3 = enabled and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end OptimizeButton.MouseButton1Click:Connect(function() SetOptimize(not OPTIMIZE_ENABLED) end) --================================================== -- ANTI WATER (LEGACY CHARACTER COLLISION PART) --================================================== AntiWaterButton.MouseButton1Click:Connect(function() ANTI_WATER = not ANTI_WATER AntiWaterButton.Text = ANTI_WATER and "ANTI WATER : ON" or "ANTI WATER : OFF" AntiWaterButton.BackgroundColor3 = ANTI_WATER and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) if ANTI_WATER then CreateAntiPart() else if AntiPart then AntiPart:Destroy() AntiPart = nil end end end) --================================================== -- ANTI WATER V2 (LOCAL RIVER REPLACEMENT) --================================================== local function EnsureAntiWaterFolder() if AntiWaterFolder and AntiWaterFolder.Parent then return AntiWaterFolder end AntiWaterFolder = workspace:FindFirstChild(ANTI_WATER_FOLDER_NAME) if not AntiWaterFolder then AntiWaterFolder = Instance.new("Folder") AntiWaterFolder.Name = ANTI_WATER_FOLDER_NAME AntiWaterFolder.Parent = workspace end return AntiWaterFolder end local function RestoreAntiWaterV2() for original, info in pairs(AntiWaterCache) do if original and original.Parent and original:IsA("BasePart") then original.LocalTransparencyModifier = info.OriginalTransparency end if info.Replacement and info.Replacement.Parent then info.Replacement:Destroy() end end table.clear(AntiWaterCache) if AntiWaterFolder and AntiWaterFolder.Parent then AntiWaterFolder:Destroy() end AntiWaterFolder = nil end local function CreateRiverReplacement(original) if not original or not original:IsA("BasePart") then return end local cached = AntiWaterCache[original] if cached and cached.Replacement and cached.Replacement.Parent then local replacement = cached.Replacement replacement.Size = original.Size replacement.CFrame = original.CFrame replacement.Color = original.Color replacement.Material = original.Material original.LocalTransparencyModifier = 1 return end local replacement = Instance.new("Part") replacement.Name = "AntiWaterCollision" replacement.Size = original.Size replacement.CFrame = original.CFrame replacement.Color = original.Color replacement.Material = original.Material replacement.Transparency = 0 replacement.Anchored = true replacement.CanCollide = true replacement.CanTouch = false replacement.CanQuery = false replacement.CastShadow = false replacement.TopSurface = Enum.SurfaceType.Smooth replacement.BottomSurface = Enum.SurfaceType.Smooth replacement.Parent = EnsureAntiWaterFolder() AntiWaterCache[original] = { OriginalTransparency = original.LocalTransparencyModifier, Replacement = replacement } original.LocalTransparencyModifier = 1 end local function ScanRiverParts() if not ANTI_WATER_V2 then return end local found = {} for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("BasePart") and obj.Name:lower() == "river" then found[obj] = true CreateRiverReplacement(obj) end end for original, info in pairs(AntiWaterCache) do if not original or not original.Parent or not found[original] then if original and original.Parent and original:IsA("BasePart") then original.LocalTransparencyModifier = info.OriginalTransparency end if info.Replacement and info.Replacement.Parent then info.Replacement:Destroy() end AntiWaterCache[original] = nil end end end AntiWaterV2Button.MouseButton1Click:Connect(function() ANTI_WATER_V2 = not ANTI_WATER_V2 AntiWaterV2Button.Text = ANTI_WATER_V2 and "ANTI WATER V2 : ON" or "ANTI WATER V2 : OFF" AntiWaterV2Button.BackgroundColor3 = ANTI_WATER_V2 and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) if ANTI_WATER_V2 then ScanRiverParts() else RestoreAntiWaterV2() end end) -- Initial state and periodic scan. if ANTI_WATER_V2 then task.defer(ScanRiverParts) end task.spawn(function() while Gui.Parent do if ANTI_WATER_V2 then ScanRiverParts() end task.wait(ANTI_WATER_SCAN_INTERVAL) end end) --================================================== -- ANTI AFK --================================================== AntiAFKButton.MouseButton1Click:Connect(function() ANTI_AFK = not ANTI_AFK AntiAFKButton.Text = ANTI_AFK and "ANTI AFK : ON" or "ANTI AFK : OFF" AntiAFKButton.BackgroundColor3 = ANTI_AFK and Color3.fromRGB(40,180,40) or Color3.fromRGB(50,50,50) end) LP.Idled:Connect(function() if ANTI_AFK then VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new(0,0)) end end) --================================================== -- ESP --================================================== local Pool = {} local function MakeESP() local Line = Instance.new("Frame") Line.Size = UDim2.fromOffset(0,2) Line.AnchorPoint = Vector2.new(0.5,0.5) Line.BackgroundColor3 = Color3.new(1,1,1) Line.BorderSizePixel = 0 Line.Visible = false Line.ZIndex = 20 Line.Parent = Gui local Text = Instance.new("TextLabel") Text.Size = UDim2.fromOffset(170,35) Text.AnchorPoint = Vector2.new(0.5,0.5) Text.BackgroundTransparency = 1 Text.TextColor3 = Color3.new(1,1,1) Text.TextStrokeTransparency = 0 Text.Font = Enum.Font.GothamBold Text.TextSize = 13 Text.Visible = false Text.ZIndex = 21 Text.Parent = Gui return { Line = Line, Text = Text } end local TOTAL = MAX_PLAYER + MAX_RESOURCE*4 for i = 1,TOTAL do Pool[i] = MakeESP() end local function ESPColor(t) if t == "Player" then return Color3.fromRGB(0,255,0) elseif t == "Wood" then return Color3.fromRGB(170,100,40) elseif t == "Stone" then return Color3.fromRGB(200,200,200) elseif t == "Apple" then return Color3.fromRGB(255,40,40) elseif t == "Food" then return Color3.fromRGB(255,180,0) end return Color3.new(1,1,1) end local function HideESP() for _,e in ipairs(Pool) do e.Line.Visible = false e.Text.Visible = false end end RunService.RenderStepped:Connect(function() if not ESP then HideESP() return end local cam = workspace.CurrentCamera if not cam or not Root then HideESP() return end local targets = {} for _,d in ipairs(PlayersCache) do table.insert(targets,d) end for _,list in pairs(Cache) do local sorted = {} for _,d in ipairs(list) do if d.Root and d.Root.Parent then d.Distance = (Root.Position-d.Root.Position).Magnitude table.insert(sorted,d) end end table.sort(sorted,function(a,b) return a.Distance < b.Distance end) for i = 1,math.min(MAX_RESOURCE,#sorted) do table.insert(targets,sorted[i]) end end local center = Vector2.new( cam.ViewportSize.X/2, cam.ViewportSize.Y/2 ) for i = 1,TOTAL do local e = Pool[i] local d = targets[i] if not d or not d.Root or not d.Root.Parent then e.Line.Visible = false e.Text.Visible = false continue end local pos = cam:WorldToViewportPoint(d.Root.Position) if pos.Z <= 0 then e.Line.Visible = false e.Text.Visible = false continue end local target = Vector2.new(pos.X,pos.Y) local diff = target-center local len = diff.Magnitude if len > 1 then e.Line.Position = UDim2.fromOffset( (center.X+target.X)/2, (center.Y+target.Y)/2 ) e.Line.Size = UDim2.fromOffset(len,2) e.Line.Rotation = math.deg( math.atan2(diff.Y,diff.X) ) e.Line.BackgroundColor3 = ESPColor(d.Type) e.Line.Visible = true end e.Text.Position = UDim2.fromOffset( math.clamp(target.X,45,cam.ViewportSize.X-45), math.clamp(target.Y-25,20,cam.ViewportSize.Y-20) ) e.Text.TextColor3 = ESPColor(d.Type) e.Text.Text = d.Name .. "\n" .. math.floor(d.Distance or 0) .. " m" e.Text.Visible = true end end) --================================================== -- ANTI WATER REFRESH --================================================== task.spawn(function() while Gui.Parent do task.wait(0.1) if ANTI_WATER and Character and Character.Parent and Root and Root.Parent then if not AntiPart or not AntiPart.Parent then CreateAntiPart() end end end end) --================================================== -- RESOURCE SCANNER --================================================== task.spawn(function() while Gui.Parent do ScanResources() task.wait(RESOURCE_DELAY) end end) --================================================== -- PLAYER SCANNER --================================================== task.spawn(function() while Gui.Parent do ScanPlayers() task.wait(PLAYER_DELAY) end end) --================================================== -- HIDE / SHOW --================================================== local Show = Instance.new("TextButton") Show.Size = UDim2.fromOffset(48,48) Show.Position = UDim2.new(0.5,-24,0.3,0) Show.BackgroundColor3 = Color3.fromRGB(0,115,175) Show.Text = "⚡" Show.TextColor3 = Color3.new(1,1,1) Show.TextSize = 21 Show.Font = Enum.Font.GothamBold Show.BorderSizePixel = 0 Show.Visible = false Show.Active = true Show.ZIndex = 900 Show.Parent = Gui local ShowCorner = Instance.new("UICorner") ShowCorner.CornerRadius = UDim.new(0,15) ShowCorner.Parent = Show local ShowStroke = Instance.new("UIStroke") ShowStroke.Color = Color3.fromRGB(80,210,255) ShowStroke.Thickness = 1.8 ShowStroke.Parent = Show Hide.MouseButton1Click:Connect(function() if not Main.Visible then return end local tween = PlayTween(MainScale, CLOSE_TWEEN, {Scale = 0.88}) PlayTween(MainStroke, CLOSE_TWEEN, {Transparency = 1}) tween.Completed:Once(function() Main.Visible = false MainScale.Scale = 0.94 MainStroke.Transparency = 0.08 Show.Visible = true Show.Size = UDim2.fromOffset(40,40) local showScale = Show:FindFirstChildOfClass("UIScale") or Instance.new("UIScale") showScale.Scale = 0.7 showScale.Parent = Show PlayTween(showScale, OPEN_TWEEN, {Scale = 1}) end) end) Show.MouseButton1Click:Connect(function() if Main.Visible then return end Show.Visible = false Main.Visible = true MainScale.Scale = 0.88 MainStroke.Transparency = 1 PlayTween(MainScale, OPEN_TWEEN, {Scale = 1}) PlayTween(MainStroke, OPEN_TWEEN, {Transparency = 0.08}) end) --================================================== -- DRAG --================================================== local function Drag(frame) local active = false local start local position frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = true start = input.Position position = frame.Position end end) UIS.InputChanged:Connect(function(input) if not active then return end if input.UserInputType ~= Enum.UserInputType.MouseMovement and input.UserInputType ~= Enum.UserInputType.Touch then return end local delta = input.Position-start frame.Position = UDim2.new( position.X.Scale, position.X.Offset+delta.X, position.Y.Scale, position.Y.Offset+delta.Y ) end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = false end end) end --================================================== -- LƯỚT DRAG WITH LOCK --================================================== local function DragPowerButton(frame) local active = false local start local position frame.InputBegan:Connect(function(input) if POWER_LOCK then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = true start = input.Position position = frame.Position end end) UIS.InputChanged:Connect(function(input) if not active then return end if POWER_LOCK then active = false return end if input.UserInputType ~= Enum.UserInputType.MouseMovement and input.UserInputType ~= Enum.UserInputType.Touch then return end local delta = input.Position-start frame.Position = UDim2.new( position.X.Scale, position.X.Offset+delta.X, position.Y.Scale, position.Y.Offset+delta.Y ) end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = false end end) end --================================================== -- DRAG OBJECTS --================================================== Drag(Main) Drag(Show) Drag(SmallSpeed) DragPowerButton(SmallPower) --================================================== -- INITIALIZE --================================================== OpenTab("MAIN") MainScale.Scale = 0.88 PlayTween(MainScale, OPEN_TWEEN, {Scale = 1}) AIM_DISTANCE = 60 AIMDistanceLabel.Text = "AIM DISTANCE: 60" AIMKnob.Position = UDim2.new(1,-8,0,0) POWER_DISTANCE = 10 PowerDistanceLabel.Text = "LƯỚT DISTANCE: 10" PowerKnob.Position = UDim2.new(0,-7,0,0) SPEED_DISTANCE = 2 SpeedDistanceLabel.Text = "SPEED DISTANCE: 2" SpeedKnob.Position = UDim2.new( (SPEED_DISTANCE-SPEED_MIN)/(SPEED_MAX-SPEED_MIN), -8, 0, 0 ) if ANTI_WATER then task.defer(function() CreateAntiPart() end) end ScanResources() ScanPlayers() --================================================== -- OUTPUT --================================================== print("[TRIBE V4] Loaded") print("[MENU] LEFT SIDEBAR") print("[AIM] FIXED") print("[LƯỚT SLIDER] READY") print("[LƯỚT LOCK] READY") print("[SPEED] READY") print("[SPEED] DISTANCE: 2") print("[SPEED] RANGE: 1 - 10") print("[SPEED] SMALL BUTTON READY") print("[ANTI WATER] CHARACTER COLLISION PART READY") print("[ANTI WATER V2] RIVER REPLACEMENT SCAN: 1S") print("[MISC] FULL BRIGHTNESS + PLAYER WARNING 200 STUDS READY") print("[OPTIMIZE] LOCAL VISUAL OPTIMIZER READY") print("[ANTI] ANTI SLOW SPEED 19 + BETA HIPHEIGHT +0.1 READY") --================================================== -- UI MICRO-ANIMATIONS --================================================== -- Subtle hover/press feedback for interactive buttons. local function AddButtonMotion(button) if not button:IsA("TextButton") or button == Hide or button == Show then return end local baseSize = button.Size button.MouseButton1Down:Connect(function() PlayTween(button, TweenInfo.new(0.08, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundTransparency = math.clamp(button.BackgroundTransparency + 0.08, 0, 1) }) end) button.MouseButton1Up:Connect(function() PlayTween(button, TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundTransparency = 0 }) end) end for _, item in ipairs(Gui:GetDescendants()) do AddButtonMotion(item) end Gui.DescendantAdded:Connect(function(item) if item:IsA("TextButton") then task.defer(function() if item.Parent then AddButtonMotion(item) end end) end end) --================================================== -- END --==================================================