Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ╔═══════════════════════════════════════════════════════════╗
- ║ Pré-história - By: NickZScripts ║
- ║ Sistema Modular & Anti-Conflitos ║
- ║ Interface: WindUI Library ║
- ╚═══════════════════════════════════════════════════════════╝
- ]]
- print("🔄 Iniciando carregamento do script...")
- --// ========== SERVICES ========== //
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local HttpService = game:GetService("HttpService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Teams = game:GetService("Teams")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local CoreGui = game:GetService("CoreGui")
- --// ========== VARIÁVEIS GLOBAIS ========== //
- local LocalPlayer = Players.LocalPlayer
- local ScriptVersion = "v5.0.0"
- local LastSpawnPosition = nil
- local Camera = workspace.CurrentCamera
- local ActiveTeleportConnection = nil
- --// ========== CONFIGURAÇÕES DO AUTO FARM ========== //
- local Config = {
- AutoFarm = false,
- AutoColeta = false,
- CheckDelay = 0.3,
- DelayBetweenCrystals = 0.1,
- raioDeColeta = 25,
- delayEntreTentativas = 0.25,
- podeExecutar = true,
- -- ESP de Carnes
- EspMeatActive = false,
- ESP_MIN_SIZE = 35,
- ESP_MAX_SIZE = 65,
- ESP_UPDATE_RATE = 0.1,
- MAX_VISIBLE_DISTANCE = 999999,
- -- ESP de Jogadores
- PlayerESP = false,
- PlayerESP_ShowHP = false,
- PlayerESP_TeamCheck = false,
- -- Click Teleport
- ClickTeleportEnabled = false,
- -- Teleports Salvos
- SavedTeleports = {},
- -- Patrulha
- PatrulhaPontos = {
- CFrame.new(0, 30, 0),
- CFrame.new(800, 30, 400),
- CFrame.new(-750, 30, -600),
- CFrame.new(450, 30, -1000),
- CFrame.new(-900, 30, 700),
- CFrame.new(0, 30, 1000),
- },
- }
- --// ========== CACHE DE NÍVEL ========== //
- local DinoLevelCache = {
- value = 0,
- lastUpdate = 0,
- updateInterval = 2
- }
- --// ========== DETECTAR POSIÇÃO DE SPAWN ========== //
- task.spawn(function()
- local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- local root = char:WaitForChild("HumanoidRootPart", 10)
- if root then
- task.wait(2)
- LastSpawnPosition = root.CFrame
- end
- LocalPlayer.CharacterAdded:Connect(function(newChar)
- task.wait(2)
- local newRoot = newChar:FindFirstChild("HumanoidRootPart")
- if newRoot then
- LastSpawnPosition = newRoot.CFrame
- end
- end)
- end)
- --// ========== FUNÇÕES DE UTILIDADE ========== //
- local function getCharacter()
- return LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- end
- local function getHumanoidRootPart()
- local char = getCharacter()
- return char and char:FindFirstChild("HumanoidRootPart")
- end
- local function teleportTo(cf)
- local root = getHumanoidRootPart()
- if root and root.Parent then
- root.Parent:SetPrimaryPartCFrame(cf)
- end
- end
- local function teleportToCrystal(c)
- local root = getHumanoidRootPart()
- if root and c then
- root.Parent:SetPrimaryPartCFrame(CFrame.new(c.Position + Vector3.new(0, 4.5, 0)))
- end
- end
- --// ========== SISTEMA DE TELEPORTE SEGURO ========== //
- local function safeTeleport(targetCFrame, locationName)
- if ActiveTeleportConnection then
- ActiveTeleportConnection:Disconnect()
- ActiveTeleportConnection = nil
- end
- local char = LocalPlayer.Character
- local root = char and char:FindFirstChild("HumanoidRootPart")
- local humanoid = char and char:FindFirstChild("Humanoid")
- if not root or not humanoid then
- return false
- end
- root.CFrame = targetCFrame
- task.spawn(function()
- task.wait(0.05)
- local rayParams = RaycastParams.new()
- rayParams.FilterType = Enum.RaycastFilterType.Blacklist
- rayParams.FilterDescendantsInstances = {char}
- local rayResult = workspace:Raycast(
- root.Position,
- Vector3.new(0, -100, 0),
- rayParams
- )
- if rayResult then
- root.CFrame = CFrame.new(rayResult.Position + Vector3.new(0, 3, 0))
- end
- end)
- local teleportStartTime = tick()
- local maxWaitTime = 1.2
- local minWaitTime = 0.2
- ActiveTeleportConnection = RunService.Heartbeat:Connect(function()
- if not char or not char.Parent or not root or not root.Parent or not humanoid then
- if ActiveTeleportConnection then
- ActiveTeleportConnection:Disconnect()
- ActiveTeleportConnection = nil
- end
- return
- end
- local elapsedTime = tick() - teleportStartTime
- local floorMaterial = humanoid.FloorMaterial
- local isOnGround = floorMaterial ~= Enum.Material.Air
- local velocity = root.AssemblyLinearVelocity
- local isStationary = velocity.Magnitude < 2
- local humanoidState = humanoid:GetState()
- local isLanded = humanoidState == Enum.HumanoidStateType.Landed or
- humanoidState == Enum.HumanoidStateType.Running or
- humanoidState == Enum.HumanoidStateType.RunningNoPhysics
- if (elapsedTime > minWaitTime and (isOnGround or (isStationary and isLanded))) or elapsedTime > maxWaitTime then
- if ActiveTeleportConnection then
- ActiveTeleportConnection:Disconnect()
- ActiveTeleportConnection = nil
- end
- if not (isOnGround or isLanded) then
- local rayParams = RaycastParams.new()
- rayParams.FilterType = Enum.RaycastFilterType.Blacklist
- rayParams.FilterDescendantsInstances = {char}
- local rayResult = workspace:Raycast(
- root.Position,
- Vector3.new(0, -200, 0),
- rayParams
- )
- if rayResult then
- root.CFrame = CFrame.new(rayResult.Position + Vector3.new(0, 3, 0))
- end
- end
- return
- end
- end)
- return true
- end
- --// ========== MÓDULO: CLICK TELEPORT ========== //
- local ClickTeleportModule = (function()
- local _enabled = false
- local _uiVisible = false
- local _screenGui = nil
- local _mainFrame = nil
- local _minimizedBtn = nil
- local _connections = {}
- local Mouse = LocalPlayer:GetMouse()
- local ClickState = {
- StartTime = 0,
- StartPosition = nil,
- IsValid = false,
- }
- local CTConfig = {
- MaxClickTime = 0.3,
- MaxDragDistance = 10,
- RaycastDistance = 10000,
- TeleportOffset = 3,
- }
- local CTTheme = {
- Background = Color3.fromRGB(25, 25, 35),
- Secondary = Color3.fromRGB(35, 35, 45),
- Accent = Color3.fromRGB(90, 170, 255),
- Success = Color3.fromRGB(90, 255, 140),
- Danger = Color3.fromRGB(255, 90, 90),
- Text = Color3.fromRGB(255, 255, 255),
- TextDim = Color3.fromRGB(180, 180, 200),
- }
- local function AddCorner(parent, radius)
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, radius or 8)
- corner.Parent = parent
- return corner
- end
- local function AddStroke(parent, color, thickness, transparency)
- local stroke = Instance.new("UIStroke")
- stroke.Color = color or Color3.fromRGB(60, 60, 80)
- stroke.Thickness = thickness or 1
- stroke.Transparency = transparency or 0
- stroke.Parent = parent
- return stroke
- end
- local function _getMouseHit()
- local unitRay = Camera:ScreenPointToRay(Mouse.X, Mouse.Y)
- local raycastParams = RaycastParams.new()
- raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
- raycastParams.FilterDescendantsInstances = {LocalPlayer.Character}
- raycastParams.IgnoreWater = false
- local raycastResult = workspace:Raycast(
- unitRay.Origin,
- unitRay.Direction * CTConfig.RaycastDistance,
- raycastParams
- )
- return raycastResult
- end
- local function _teleportToPosition(position)
- local root = getHumanoidRootPart()
- if not root then return false end
- local currentPosition = root.Position
- local teleportPos = position + Vector3.new(0, CTConfig.TeleportOffset, 0)
- local directionVector = (position - currentPosition)
- local horizontalDirection = Vector3.new(directionVector.X, 0, directionVector.Z)
- local lookDirection = horizontalDirection.Unit
- local targetCFrame = CFrame.new(teleportPos, teleportPos + lookDirection)
- root.CFrame = targetCFrame
- return true
- end
- local function _isValidClick(startPos, endPos, duration)
- if duration > CTConfig.MaxClickTime then return false end
- local dragDistance = (endPos - startPos).Magnitude
- if dragDistance > CTConfig.MaxDragDistance then return false end
- return true
- end
- local function _updateStatusLabel(text, color)
- if _mainFrame then
- local statusLabel = _mainFrame:FindFirstChild("Container"):FindFirstChild("StatusLabel")
- if statusLabel then
- statusLabel.Text = text
- statusLabel.TextColor3 = color
- end
- end
- end
- local function _enableClickDetection()
- for _, conn in ipairs(_connections) do
- if conn and conn.Connected then
- conn:Disconnect()
- end
- end
- _connections = {}
- table.insert(_connections, UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if not _enabled then return end
- if input.UserInputType == Enum.UserInputType.MouseButton1 or
- input.UserInputType == Enum.UserInputType.Touch then
- ClickState.StartTime = tick()
- ClickState.StartPosition = Vector2.new(Mouse.X, Mouse.Y)
- ClickState.IsValid = true
- end
- end))
- table.insert(_connections, UserInputService.InputEnded:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if not _enabled then return end
- if not ClickState.IsValid then return end
- if input.UserInputType == Enum.UserInputType.MouseButton1 or
- input.UserInputType == Enum.UserInputType.Touch then
- local clickDuration = tick() - ClickState.StartTime
- local endPosition = Vector2.new(Mouse.X, Mouse.Y)
- if _isValidClick(ClickState.StartPosition, endPosition, clickDuration) then
- local raycastResult = _getMouseHit()
- if raycastResult then
- if _teleportToPosition(raycastResult.Position) then
- _updateStatusLabel("✅ Teleportado!", CTTheme.Success)
- task.wait(1)
- _updateStatusLabel("Clique em qualquer lugar para teleportar", CTTheme.TextDim)
- end
- else
- _updateStatusLabel("❌ Não é possível teleportar para o céu", CTTheme.Danger)
- task.wait(1.5)
- _updateStatusLabel("Clique em qualquer lugar para teleportar", CTTheme.TextDim)
- end
- end
- ClickState.IsValid = false
- end
- end))
- end
- local function _disableClickDetection()
- for _, conn in ipairs(_connections) do
- if conn and conn.Connected then
- conn:Disconnect()
- end
- end
- _connections = {}
- end
- local function _minimizeUI()
- if _mainFrame then
- _mainFrame.Visible = false
- end
- if _minimizedBtn then
- _minimizedBtn.Visible = true
- _minimizedBtn.Size = UDim2.new(0, 0, 0, 0)
- TweenService:Create(_minimizedBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
- Size = UDim2.new(0, 50, 0, 50)
- }):Play()
- end
- end
- local function _maximizeUI()
- if _minimizedBtn then
- TweenService:Create(_minimizedBtn, TweenInfo.new(0.2, Enum.EasingStyle.Back, Enum.EasingDirection.In), {
- Size = UDim2.new(0, 0, 0, 0)
- }):Play()
- task.wait(0.2)
- _minimizedBtn.Visible = false
- end
- if _mainFrame then
- _mainFrame.Visible = true
- _mainFrame.Size = UDim2.new(0, 0, 0, 0)
- TweenService:Create(_mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
- Size = UDim2.new(0, 260, 0, 180)
- }):Play()
- end
- end
- local function _createUI()
- if _screenGui then
- pcall(function() _screenGui:Destroy() end)
- _screenGui = nil
- end
- _screenGui = Instance.new("ScreenGui")
- _screenGui.Name = "ClickTeleportUI_PreHistoria"
- _screenGui.ResetOnSpawn = false
- _screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- _screenGui.Parent = game:GetService("CoreGui")
- _mainFrame = Instance.new("Frame")
- _mainFrame.Name = "MainFrame"
- _mainFrame.Size = UDim2.new(0, 260, 0, 180)
- _mainFrame.Position = UDim2.new(0.5, -130, 0.5, -90)
- _mainFrame.BackgroundColor3 = CTTheme.Background
- _mainFrame.BackgroundTransparency = 0.05
- _mainFrame.BorderSizePixel = 0
- _mainFrame.Active = true
- _mainFrame.Draggable = true
- _mainFrame.Parent = _screenGui
- AddCorner(_mainFrame, 12)
- AddStroke(_mainFrame, CTTheme.Accent, 2, 0.3)
- local bgGradient = Instance.new("UIGradient")
- bgGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 30, 40)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(20, 20, 30))
- }
- bgGradient.Rotation = 45
- bgGradient.Parent = _mainFrame
- local header = Instance.new("Frame")
- header.Size = UDim2.new(1, 0, 0, 50)
- header.BackgroundColor3 = CTTheme.Secondary
- header.BackgroundTransparency = 0.2
- header.BorderSizePixel = 0
- header.Parent = _mainFrame
- AddCorner(header, 12)
- local headerFix = Instance.new("Frame")
- headerFix.Size = UDim2.new(1, 0, 0, 12)
- headerFix.Position = UDim2.new(0, 0, 1, -12)
- headerFix.BackgroundColor3 = CTTheme.Secondary
- headerFix.BackgroundTransparency = 0.2
- headerFix.BorderSizePixel = 0
- headerFix.Parent = header
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, -85, 1, 0)
- title.Position = UDim2.new(0, 15, 0, 0)
- title.BackgroundTransparency = 1
- title.Text = "🎯 Click Teleport"
- title.TextColor3 = CTTheme.Text
- title.TextSize = 17
- title.Font = Enum.Font.GothamBold
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Parent = header
- local minimizeBtn = Instance.new("TextButton")
- minimizeBtn.Size = UDim2.new(0, 35, 0, 35)
- minimizeBtn.Position = UDim2.new(1, -78, 0.5, -17.5)
- minimizeBtn.BackgroundColor3 = Color3.fromRGB(255, 200, 100)
- minimizeBtn.BackgroundTransparency = 0.2
- minimizeBtn.Text = "➖"
- minimizeBtn.TextColor3 = CTTheme.Text
- minimizeBtn.TextSize = 18
- minimizeBtn.Font = Enum.Font.GothamBold
- minimizeBtn.AutoButtonColor = false
- minimizeBtn.Parent = header
- AddCorner(minimizeBtn, 8)
- local closeBtn = Instance.new("TextButton")
- closeBtn.Size = UDim2.new(0, 35, 0, 35)
- closeBtn.Position = UDim2.new(1, -38, 0.5, -17.5)
- closeBtn.BackgroundColor3 = CTTheme.Danger
- closeBtn.BackgroundTransparency = 0.2
- closeBtn.Text = "✕"
- closeBtn.TextColor3 = CTTheme.Text
- closeBtn.TextSize = 20
- closeBtn.Font = Enum.Font.GothamBold
- closeBtn.AutoButtonColor = false
- closeBtn.Parent = header
- AddCorner(closeBtn, 8)
- local container = Instance.new("Frame")
- container.Name = "Container"
- container.Size = UDim2.new(1, -20, 1, -60)
- container.Position = UDim2.new(0, 10, 0, 55)
- container.BackgroundTransparency = 1
- container.Parent = _mainFrame
- local toggleBtn = Instance.new("TextButton")
- toggleBtn.Name = "ToggleBtn"
- toggleBtn.Size = UDim2.new(1, 0, 0, 55)
- toggleBtn.Position = UDim2.new(0, 0, 0, 0)
- toggleBtn.BackgroundColor3 = CTTheme.Danger
- toggleBtn.BackgroundTransparency = 0.1
- toggleBtn.Text = "🔴 DESATIVADO"
- toggleBtn.TextColor3 = CTTheme.Text
- toggleBtn.TextSize = 16
- toggleBtn.Font = Enum.Font.GothamBold
- toggleBtn.AutoButtonColor = false
- toggleBtn.Parent = container
- AddCorner(toggleBtn, 10)
- local toggleStroke = Instance.new("UIStroke")
- toggleStroke.Name = "Stroke"
- toggleStroke.Color = CTTheme.Danger
- toggleStroke.Thickness = 2
- toggleStroke.Transparency = 0.3
- toggleStroke.Parent = toggleBtn
- local statusLabel = Instance.new("TextLabel")
- statusLabel.Name = "StatusLabel"
- statusLabel.Size = UDim2.new(1, 0, 0, 25)
- statusLabel.Position = UDim2.new(0, 0, 0, 65)
- statusLabel.BackgroundTransparency = 1
- statusLabel.Text = "Clique em qualquer lugar para teleportar"
- statusLabel.TextColor3 = CTTheme.TextDim
- statusLabel.TextSize = 12
- statusLabel.Font = Enum.Font.Gotham
- statusLabel.TextWrapped = true
- statusLabel.Parent = container
- local infoLabel = Instance.new("TextLabel")
- infoLabel.Size = UDim2.new(1, 0, 0, 20)
- infoLabel.Position = UDim2.new(0, 0, 0, 92)
- infoLabel.BackgroundTransparency = 1
- infoLabel.Text = "⚡ Teleporte limpo e instantâneo"
- infoLabel.TextColor3 = CTTheme.Success
- infoLabel.TextSize = 11
- infoLabel.Font = Enum.Font.Gotham
- infoLabel.Parent = container
- _minimizedBtn = Instance.new("TextButton")
- _minimizedBtn.Name = "MinimizedBtn"
- _minimizedBtn.Size = UDim2.new(0, 50, 0, 50)
- _minimizedBtn.Position = UDim2.new(1, -60, 0, 10)
- _minimizedBtn.BackgroundColor3 = CTTheme.Accent
- _minimizedBtn.BackgroundTransparency = 0.1
- _minimizedBtn.Text = "🎯"
- _minimizedBtn.TextColor3 = CTTheme.Text
- _minimizedBtn.TextSize = 24
- _minimizedBtn.Font = Enum.Font.GothamBold
- _minimizedBtn.AutoButtonColor = false
- _minimizedBtn.Visible = false
- _minimizedBtn.Active = true
- _minimizedBtn.Draggable = true
- _minimizedBtn.Parent = _screenGui
- AddCorner(_minimizedBtn, 12)
- AddStroke(_minimizedBtn, CTTheme.Accent, 2)
- toggleBtn.MouseButton1Click:Connect(function()
- _enabled = not _enabled
- if _enabled then
- toggleBtn.Text = "🟢 ATIVADO"
- toggleBtn.BackgroundColor3 = CTTheme.Success
- toggleStroke.Color = CTTheme.Success
- statusLabel.Text = "Clique em qualquer lugar para teleportar"
- _enableClickDetection()
- else
- toggleBtn.Text = "🔴 DESATIVADO"
- toggleBtn.BackgroundColor3 = CTTheme.Danger
- toggleStroke.Color = CTTheme.Danger
- statusLabel.Text = "Teleporte desativado"
- _disableClickDetection()
- end
- end)
- minimizeBtn.MouseButton1Click:Connect(function()
- _minimizeUI()
- end)
- _minimizedBtn.MouseButton1Click:Connect(function()
- _maximizeUI()
- end)
- closeBtn.MouseButton1Click:Connect(function()
- _enabled = false
- _disableClickDetection()
- if _screenGui then
- pcall(function() _screenGui:Destroy() end)
- _screenGui = nil
- _mainFrame = nil
- _minimizedBtn = nil
- end
- _uiVisible = false
- Config.ClickTeleportEnabled = false
- end)
- _uiVisible = true
- end
- return {
- Init = function()
- print("✅ Módulo Click Teleport inicializado")
- end,
- Toggle = function(state)
- Config.ClickTeleportEnabled = state
- if state then
- if not _uiVisible then
- _createUI()
- end
- else
- if _screenGui then
- _enabled = false
- _disableClickDetection()
- pcall(function() _screenGui:Destroy() end)
- _screenGui = nil
- _mainFrame = nil
- _minimizedBtn = nil
- end
- _uiVisible = false
- end
- end,
- Cleanup = function()
- _enabled = false
- _disableClickDetection()
- if _screenGui then
- pcall(function() _screenGui:Destroy() end)
- _screenGui = nil
- _mainFrame = nil
- _minimizedBtn = nil
- end
- _uiVisible = false
- print("🧹 Click Teleport limpo")
- end,
- IsEnabled = function()
- return Config.ClickTeleportEnabled
- end
- }
- end)()
- ClickTeleportModule.Init()
- --// ========== SISTEMA DE NÍVEL DO DINO ========== //
- local function getDinoLevelSilent()
- local now = tick()
- if (now - DinoLevelCache.lastUpdate) < DinoLevelCache.updateInterval then
- return DinoLevelCache.value
- end
- local leaderstats = LocalPlayer:FindFirstChild("leaderstats")
- if leaderstats then
- for _, stat in ipairs(leaderstats:GetChildren()) do
- local name = stat.Name:lower()
- if name:find("level") or name:find("lvl") or name:find("nivel") then
- if stat:IsA("IntValue") or stat:IsA("NumberValue") then
- local val = tonumber(stat.Value) or 0
- if val > 0 then
- DinoLevelCache.value = val
- DinoLevelCache.lastUpdate = now
- return val
- end
- end
- end
- end
- end
- local playerGui = LocalPlayer:FindFirstChild("PlayerGui")
- if playerGui then
- for _, gui in ipairs(playerGui:GetDescendants()) do
- if gui:IsA("TextLabel") or gui:IsA("TextBox") then
- local text = gui.Text:lower()
- if text:find("level") or text:find("lvl") or text:find("nivel") then
- local number = text:match("%d+")
- if number then
- local val = tonumber(number)
- if val and val > 0 and val <= 100 then
- DinoLevelCache.value = val
- DinoLevelCache.lastUpdate = now
- return val
- end
- end
- end
- end
- end
- end
- DinoLevelCache.lastUpdate = now
- return DinoLevelCache.value
- end
- --// ========== SISTEMA DE CRISTAIS ========== //
- local prioridadeMap = { legendary = 1, epic = 2, rare = 3, crystal = 4 }
- local function getCrystalRank(name)
- name = name:lower()
- for key, rank in pairs(prioridadeMap) do
- if name:find(key) then return rank end
- end
- return 5
- end
- local function getSortedCrystals()
- local found = {}
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("BasePart") and obj.Parent and obj.Parent:IsA("Model") then
- local rank = getCrystalRank(obj.Parent.Name)
- if rank < 5 then
- table.insert(found, {part = obj, rank = rank})
- end
- end
- end
- table.sort(found, function(a, b) return a.rank < b.rank end)
- local parts = {}
- for _, entry in ipairs(found) do
- table.insert(parts, entry.part)
- end
- return parts
- end
- --// ========== SISTEMA ESP DE CARNES ========== //
- local ActiveMeatESPs = {}
- local meatUpdateLoop = nil
- local meatScanLoop = nil
- local function isMeatObject(obj)
- if not obj then return false, nil end
- if obj:IsA("ProximityPrompt") and obj.Enabled then
- local action = (obj.ActionText or ""):lower()
- local objText = (obj.ObjectText or ""):lower()
- local foodActions = {"coma", "eat", "pegar", "pick", "grab", "take"}
- for _, foodAction in ipairs(foodActions) do
- if action:find(foodAction) then
- local fullText = action .. " " .. objText
- local excludeWords = {"plant", "fish", "berry", "fruit", "vegetable", "seed"}
- local isExcluded = false
- for _, word in ipairs(excludeWords) do
- if fullText:find(word) then
- isExcluded = true
- break
- end
- end
- if not isExcluded then
- local parent = obj.Parent
- if parent and parent:IsA("BasePart") then
- for _, player in ipairs(Players:GetPlayers()) do
- if player.Character and parent:IsDescendantOf(player.Character) then
- return false, nil
- end
- end
- return true, parent
- end
- end
- end
- end
- end
- if obj:IsA("Model") or obj:IsA("BasePart") then
- local name = (obj.Name or ""):lower()
- local meatWords = {
- "meat", "carne", "beef", "steak", "chicken",
- "frango", "pork", "porco", "bacon", "ham"
- }
- for _, word in ipairs(meatWords) do
- if name:find(word) then
- for _, player in ipairs(Players:GetPlayers()) do
- if player.Character and obj:IsDescendantOf(player.Character) then
- return false, nil
- end
- end
- if obj:IsA("Model") then
- local part = obj.PrimaryPart or obj:FindFirstChildWhichIsA("BasePart")
- return part ~= nil, part
- else
- return true, obj
- end
- end
- end
- end
- return false, nil
- end
- local function findNearestMeat()
- local char = LocalPlayer.Character
- local root = char and char:FindFirstChild("HumanoidRootPart")
- if not root then return nil, math.huge end
- local nearestMeat = nil
- local nearestDistance = math.huge
- for _, obj in ipairs(workspace:GetDescendants()) do
- local isMeat, part = isMeatObject(obj)
- if isMeat and part and part.Parent then
- local distance = (part.Position - root.Position).Magnitude
- if distance < nearestDistance then
- nearestDistance = distance
- nearestMeat = part
- end
- end
- end
- return nearestMeat, nearestDistance
- end
- local function createMeatESP(part)
- if not part or not part:IsA("BasePart") or not part.Parent then return end
- local id = tostring(part:GetDebugId())
- if ActiveMeatESPs[id] then return end
- local esp = Instance.new("BillboardGui")
- esp.Name = "MeatESP_" .. id
- esp.Adornee = part
- esp.Size = UDim2.new(0, Config.ESP_MAX_SIZE, 0, Config.ESP_MAX_SIZE * 0.4)
- esp.StudsOffset = Vector3.new(0, 3, 0)
- esp.AlwaysOnTop = true
- esp.LightInfluence = 0
- esp.MaxDistance = Config.MAX_VISIBLE_DISTANCE
- esp.Parent = workspace
- esp.Enabled = true
- local frame = Instance.new("Frame", esp)
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
- frame.BackgroundTransparency = 0.4
- frame.BorderSizePixel = 1
- frame.BorderColor3 = Color3.fromRGB(255, 200, 0)
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 6)
- corner.Parent = frame
- local iconLabel = Instance.new("TextLabel", frame)
- iconLabel.Size = UDim2.new(0.3, 0, 0.9, 0)
- iconLabel.Position = UDim2.new(0, 2, 0.05, 0)
- iconLabel.BackgroundTransparency = 1
- iconLabel.Text = "🥩"
- iconLabel.TextScaled = true
- iconLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- iconLabel.Font = Enum.Font.SourceSansBold
- iconLabel.TextStrokeTransparency = 0.5
- local distLabel = Instance.new("TextLabel", frame)
- distLabel.Name = "Distance"
- distLabel.Size = UDim2.new(0.7, -4, 0.9, 0)
- distLabel.Position = UDim2.new(0.3, 2, 0.05, 0)
- distLabel.BackgroundTransparency = 1
- distLabel.Text = "0m"
- distLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- distLabel.TextStrokeTransparency = 0.3
- distLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
- distLabel.Font = Enum.Font.GothamBold
- distLabel.TextScaled = true
- ActiveMeatESPs[id] = {
- gui = esp,
- part = part,
- distLabel = distLabel,
- frame = frame,
- iconLabel = iconLabel
- }
- return true
- end
- local function scanForMeats()
- if not Config.EspMeatActive then return end
- for id, data in pairs(ActiveMeatESPs) do
- if data.gui then
- pcall(function() data.gui:Destroy() end)
- end
- end
- ActiveMeatESPs = {}
- local meatCount = 0
- local checkedCount = 0
- for _, obj in ipairs(workspace:GetDescendants()) do
- checkedCount = checkedCount + 1
- if checkedCount % 300 == 0 then
- task.wait()
- if not Config.EspMeatActive then return end
- end
- local isMeat, part = isMeatObject(obj)
- if isMeat and part and part.Parent then
- if createMeatESP(part) then
- meatCount = meatCount + 1
- end
- end
- end
- end
- local function updateMeatESPInfo()
- if not Config.EspMeatActive then return end
- local char = LocalPlayer.Character
- local root = char and char:FindFirstChild("HumanoidRootPart")
- if not root then return end
- for id, data in pairs(ActiveMeatESPs) do
- if data.part and data.part.Parent and data.gui and data.gui.Parent then
- local distance = (data.part.Position - root.Position).Magnitude
- data.gui.Enabled = true
- if data.distLabel then
- if distance < 100 then
- data.distLabel.Text = string.format("%.0fm", distance)
- elseif distance < 1000 then
- data.distLabel.Text = string.format("%.0fm", distance)
- else
- data.distLabel.Text = string.format("%.1fkm", distance / 1000)
- end
- end
- local scaleFactor
- if distance <= 50 then scaleFactor = 1.0
- elseif distance <= 200 then scaleFactor = 0.75
- elseif distance <= 500 then scaleFactor = 0.6
- elseif distance <= 1000 then scaleFactor = 0.5
- else scaleFactor = 0.4 end
- local newSize = Config.ESP_MIN_SIZE + ((Config.ESP_MAX_SIZE - Config.ESP_MIN_SIZE) * scaleFactor)
- data.gui.Size = UDim2.new(0, newSize, 0, newSize * 0.4)
- if data.frame then
- local transparency
- if distance < 300 then transparency = 0.3
- elseif distance < 1000 then transparency = 0.5
- else transparency = 0.7 end
- data.frame.BackgroundTransparency = transparency
- end
- if distance < 100 then
- data.frame.BackgroundColor3 = Color3.fromRGB(100, 255, 100)
- data.frame.BorderColor3 = Color3.fromRGB(200, 255, 200)
- elseif distance < 500 then
- data.frame.BackgroundColor3 = Color3.fromRGB(255, 255, 100)
- data.frame.BorderColor3 = Color3.fromRGB(255, 255, 150)
- else
- data.frame.BackgroundColor3 = Color3.fromRGB(255, 120, 120)
- data.frame.BorderColor3 = Color3.fromRGB(255, 150, 150)
- end
- else
- if data.gui then
- pcall(function() data.gui:Destroy() end)
- end
- ActiveMeatESPs[id] = nil
- end
- end
- end
- local function startMeatESP()
- if meatUpdateLoop then return end
- scanForMeats()
- meatUpdateLoop = RunService.Heartbeat:Connect(function()
- updateMeatESPInfo()
- end)
- meatScanLoop = task.spawn(function()
- while Config.EspMeatActive do
- task.wait(10)
- if Config.EspMeatActive then
- scanForMeats()
- end
- end
- end)
- workspace.DescendantAdded:Connect(function(obj)
- if not Config.EspMeatActive then return end
- task.wait(0.1)
- local isMeat, part = isMeatObject(obj)
- if isMeat and part then
- local id = tostring(part:GetDebugId())
- if not ActiveMeatESPs[id] then
- createMeatESP(part)
- end
- end
- end)
- end
- local function stopMeatESP()
- if meatUpdateLoop then
- meatUpdateLoop:Disconnect()
- meatUpdateLoop = nil
- end
- if meatScanLoop then
- task.cancel(meatScanLoop)
- meatScanLoop = nil
- end
- for id, data in pairs(ActiveMeatESPs) do
- if data.gui then
- pcall(function() data.gui:Destroy() end)
- end
- end
- ActiveMeatESPs = {}
- end
- --// ========== SISTEMA ESP DE JOGADORES ========== //
- local PlayerESP_Data = {}
- local ESP_CONFIG = {
- UpdateInterval = 0.5,
- HPBarMaxDistance = 4000,
- HPBarSize = UDim2.new(0, 50, 0, 5),
- HPBarYOffset = 0.5,
- HighlightFillTransparency = 0.85,
- OutlineTransparency = 0.15,
- }
- local COLOR_ENEMY = Color3.fromRGB(255, 85, 85)
- local COLOR_FRIEND = Color3.fromRGB(85, 255, 85)
- local COLOR_NEUTRAL = Color3.fromRGB(240, 240, 240)
- local function isNeutralPlayer(p)
- return p.Team == nil
- end
- local function isAllyPlayer(p)
- return LocalPlayer.Team and p.Team == LocalPlayer.Team
- end
- local function colorForPlayer(p)
- if isNeutralPlayer(p) then
- return COLOR_NEUTRAL
- end
- if isAllyPlayer(p) then
- return COLOR_FRIEND
- end
- return COLOR_ENEMY
- end
- local function shouldShowPlayerESP(p)
- if not Config.PlayerESP then return false end
- if Config.PlayerESP_TeamCheck then return not isAllyPlayer(p) end
- return true
- end
- local function shouldShowPlayerHP(p)
- if not Config.PlayerESP_ShowHP then return false end
- if Config.PlayerESP_TeamCheck then return not isAllyPlayer(p) end
- return true
- end
- local function clearPlayerESP(plr)
- local pack = PlayerESP_Data[plr]
- if not pack then return end
- if pack.highlight then
- pcall(function() pack.highlight:Destroy() end)
- pack.highlight = nil
- end
- if pack.hpGui then
- pcall(function() pack.hpGui:Destroy() end)
- pack.hpGui = nil
- end
- PlayerESP_Data[plr] = nil
- end
- local function setupPlayerESP(plr)
- if plr == LocalPlayer then return end
- if not plr.Character then return end
- clearPlayerESP(plr)
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local root = char:FindFirstChild("HumanoidRootPart")
- local head = char:FindFirstChild("Head")
- if not hum or not root then return end
- PlayerESP_Data[plr] = {}
- -- Highlight
- local hi = Instance.new("Highlight")
- hi.Name = "PlayerESP_Highlight"
- hi.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
- hi.FillTransparency = ESP_CONFIG.HighlightFillTransparency
- hi.OutlineTransparency = ESP_CONFIG.OutlineTransparency
- hi.Adornee = char
- hi.Parent = char
- local col = colorForPlayer(plr)
- hi.FillColor = col
- hi.OutlineColor = col
- hi.Enabled = shouldShowPlayerESP(plr)
- PlayerESP_Data[plr].highlight = hi
- -- HP Bar
- local bill = Instance.new("BillboardGui")
- bill.Name = "PlayerESP_HP"
- bill.AlwaysOnTop = true
- bill.LightInfluence = 0
- bill.Size = ESP_CONFIG.HPBarSize
- bill.MaxDistance = ESP_CONFIG.HPBarMaxDistance
- bill.Parent = char
- if head then
- bill.Adornee = head
- local headSize = head.Size.Y
- bill.StudsOffset = Vector3.new(0, headSize/2 + ESP_CONFIG.HPBarYOffset, 0)
- else
- bill.Adornee = root
- bill.StudsOffset = Vector3.new(0, 2.5 + ESP_CONFIG.HPBarYOffset, 0)
- end
- local bg = Instance.new("Frame", bill)
- bg.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- bg.BackgroundTransparency = 0.2
- bg.BorderSizePixel = 0
- bg.Size = UDim2.fromScale(1, 1)
- local bgCorner = Instance.new("UICorner")
- bgCorner.CornerRadius = UDim.new(0, 2)
- bgCorner.Parent = bg
- local bgStroke = Instance.new("UIStroke")
- bgStroke.Color = Color3.fromRGB(0, 0, 0)
- bgStroke.Thickness = 1.5
- bgStroke.Parent = bg
- local fill = Instance.new("Frame", bg)
- fill.BackgroundColor3 = COLOR_FRIEND
- fill.BorderSizePixel = 0
- fill.Size = UDim2.fromScale(1, 1)
- local fillCorner = Instance.new("UICorner")
- fillCorner.CornerRadius = UDim.new(0, 2)
- fillCorner.Parent = fill
- bill.Enabled = shouldShowPlayerHP(plr)
- PlayerESP_Data[plr].hpGui = bill
- PlayerESP_Data[plr].hpFill = fill
- PlayerESP_Data[plr].hum = hum
- end
- task.spawn(function()
- while true do
- task.wait(ESP_CONFIG.UpdateInterval)
- for plr, pack in pairs(PlayerESP_Data) do
- if plr and plr.Parent and plr.Character then
- local hum = pack.hum
- if hum and pack.hpFill then
- local h = hum.Health
- local m = hum.MaxHealth
- if m <= 0 then m = 100 end
- local ratio = math.clamp(h / m, 0, 1)
- pack.hpFill.Size = UDim2.new(ratio, 0, 1, 0)
- local r, g
- if ratio > 0.5 then
- r = (1 - ratio) * 2 * 255
- g = 255
- else
- r = 255
- g = ratio * 2 * 255
- end
- pack.hpFill.BackgroundColor3 = Color3.fromRGB(r, g, 0)
- if pack.hpGui then
- pack.hpGui.Enabled = shouldShowPlayerHP(plr) and (h > 0)
- end
- end
- if pack.highlight then
- pack.highlight.Enabled = shouldShowPlayerESP(plr)
- end
- else
- clearPlayerESP(plr)
- end
- end
- end
- end)
- Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function()
- task.wait(1)
- setupPlayerESP(plr)
- end)
- end)
- Players.PlayerRemoving:Connect(function(plr)
- clearPlayerESP(plr)
- end)
- for _, plr in ipairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer and plr.Character then
- setupPlayerESP(plr)
- end
- plr.CharacterAdded:Connect(function()
- task.wait(1)
- setupPlayerESP(plr)
- end)
- end
- --// ========== CARREGAR TELEPORTS SALVOS ========== //
- local function loadSavedTeleports()
- if not isfile then
- Config.SavedTeleports = {}
- print("📍 Nenhum teleport salvo (executor sem suporte)")
- return
- end
- local success, data = pcall(function()
- if isfile("PreHistoria_Teleports.json") then
- return HttpService:JSONDecode(readfile("PreHistoria_Teleports.json"))
- end
- return {}
- end)
- if success and data then
- Config.SavedTeleports = data
- print("📍 Carregado " .. #data .. " teleports salvos")
- else
- Config.SavedTeleports = {}
- print("📍 Nenhum teleport salvo encontrado")
- end
- end
- loadSavedTeleports()
- --// ========== CARREGAR WINDUI ========== //
- print("🔄 Carregando WindUI...")
- local success, WindUI = pcall(function()
- return loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/refs/heads/main/source.lua"))()
- end)
- if not success or not WindUI then
- error("❌ ERRO: Não foi possível carregar WindUI!\n" .. tostring(WindUI))
- return
- end
- print("✅ WindUI carregada com sucesso!")
- --// ========== CRIAR INTERFACE WINDUI ========== //
- local Window = WindUI:CreateWindow({
- Title = "🦖 Pré-história - " .. ScriptVersion,
- Icon = "rbxassetid://10723415766",
- Author = "NickZScripts",
- Folder = "PreHistoriaConfig",
- Size = UDim2.fromOffset(550, 650),
- KeySystem = false,
- Transparent = false,
- Theme = "Dark",
- SideBarWidth = 170,
- })
- --// ========== VARIÁVEL DE NOTIFICAÇÃO ========== //
- local Notify = function(title, description, duration)
- if Window and Window.Notify then
- Window:Notify({
- Title = title,
- Description = description,
- Duration = duration or 3
- })
- end
- end
- --// ========== ABA MENU ========== //
- local MenuTab = Window:Tab({
- Title = "Menu",
- Icon = "home"
- })
- local InfoSection = MenuTab:Section({
- Title = "📊 Informações do Servidor"
- })
- local PlayersCountLabel = InfoSection:Label({
- Text = "👥 Players Online: 0/0"
- })
- local function updatePlayerCount()
- local current = #Players:GetPlayers()
- local max = Players.MaxPlayers
- PlayersCountLabel:Set(string.format("👥 Players Online: %d/%d", current, max))
- end
- updatePlayerCount()
- Players.PlayerAdded:Connect(updatePlayerCount)
- Players.PlayerRemoving:Connect(updatePlayerCount)
- task.spawn(function()
- while true do
- task.wait(5)
- updatePlayerCount()
- end
- end)
- InfoSection:Label({
- Text = "📜 Versão: " .. ScriptVersion
- })
- InfoSection:Label({
- Text = "✅ Status: Operacional"
- })
- InfoSection:Label({
- Text = "🎨 Interface: WindUI"
- })
- local PlayerSection = MenuTab:Section({
- Title = "👤 Informações do Jogador"
- })
- PlayerSection:Label({
- Text = "Nome: " .. LocalPlayer.Name
- })
- PlayerSection:Label({
- Text = "Display: " .. LocalPlayer.DisplayName
- })
- PlayerSection:Label({
- Text = "ID: " .. LocalPlayer.UserId
- })
- local SystemsSection = MenuTab:Section({
- Title = "⚡ Sistemas Ativos"
- })
- local AutoFarmStatusLabel = SystemsSection:Label({
- Text = "💎 Auto Farm - Desligado"
- })
- local EspCarnesStatusLabel = SystemsSection:Label({
- Text = "🥩 ESP Carnes - Desligado"
- })
- local EspJogadoresStatusLabel = SystemsSection:Label({
- Text = "👥 ESP Jogadores - Desligado"
- })
- local AutoColetaStatusLabel = SystemsSection:Label({
- Text = "🔄 Auto Coleta - Desligado"
- })
- local CreditsSection = MenuTab:Section({
- Title = "👨💻 Créditos"
- })
- CreditsSection:Label({
- Text = "Desenvolvedor: NickZScripts"
- })
- CreditsSection:Label({
- Text = "Interface: WindUI Library"
- })
- CreditsSection:Label({
- Text = "Versão: " .. ScriptVersion
- })
- --// ========== ABA AUTO FARM ========== //
- local FarmTab = Window:Tab({
- Title = "Auto Farm",
- Icon = "zap"
- })
- local CrystalSection = FarmTab:Section({
- Title = "💎 Farm de Cristais"
- })
- local DinoLevelLabel = CrystalSection:Label({
- Text = "🦖 Nível do Dino: 0/60"
- })
- task.spawn(function()
- while true do
- task.wait(2)
- local level = getDinoLevelSilent()
- DinoLevelLabel:Set(string.format("🦖 Nível do Dino: %d/60", level))
- end
- end)
- CrystalSection:Toggle({
- Title = "Auto Farm Cristais",
- Description = "Farma cristais automaticamente",
- Default = false,
- Callback = function(Value)
- Config.AutoFarm = Value
- if Value then
- AutoFarmStatusLabel:Set("💎 Auto Farm - Ligado")
- Notify("✅ Ativado", "Auto Farm ligado", 2)
- else
- AutoFarmStatusLabel:Set("💎 Auto Farm - Desligado")
- Notify("❌ Desativado", "Auto Farm desligado", 2)
- end
- end
- })
- local ColetaSection = FarmTab:Section({
- Title = "🔄 Auto Coleta"
- })
- ColetaSection:Toggle({
- Title = "Auto Coleta",
- Description = "Coleta itens automaticamente",
- Default = false,
- Callback = function(Value)
- Config.AutoColeta = Value
- if Value then
- AutoColetaStatusLabel:Set("🔄 Auto Coleta - Ligado")
- Notify("✅ Ativado", "Auto Coleta ligado", 2)
- else
- AutoColetaStatusLabel:Set("🔄 Auto Coleta - Desligado")
- Notify("❌ Desativado", "Auto Coleta desligado", 2)
- end
- end
- })
- --// ========== ABA ESP ========== //
- local EspTab = Window:Tab({
- Title = "ESP",
- Icon = "eye"
- })
- local PlayerESPSection = EspTab:Section({
- Title = "👥 ESP de Jogadores"
- })
- PlayerESPSection:Toggle({
- Title = "ESP de Jogadores",
- Description = "Mostra jogadores através de paredes",
- Default = false,
- Callback = function(Value)
- Config.PlayerESP = Value
- if Value then
- EspJogadoresStatusLabel:Set("👥 ESP Jogadores - Ligado")
- for _, plr in ipairs(Players:GetPlayers()) do
- if plr ~= LocalPlayer then
- setupPlayerESP(plr)
- end
- end
- Notify("✅ Ativado", "ESP Jogadores ligado", 2)
- else
- EspJogadoresStatusLabel:Set("👥 ESP Jogadores - Desligado")
- for plr, pack in pairs(PlayerESP_Data) do
- if pack.highlight then pack.highlight.Enabled = false end
- if pack.hpGui then pack.hpGui.Enabled = false end
- end
- Notify("❌ Desativado", "ESP Jogadores desligado", 2)
- end
- end
- })
- PlayerESPSection:Toggle({
- Title = "Barra de Vida",
- Description = "Mostra HP dos jogadores",
- Default = false,
- Callback = function(Value)
- Config.PlayerESP_ShowHP = Value
- for plr, pack in pairs(PlayerESP_Data) do
- if pack.hpGui then
- pack.hpGui.Enabled = shouldShowPlayerHP(plr)
- end
- end
- Notify(Value and "✅ Ativado" or "❌ Desativado", "Barra de Vida " .. (Value and "ligada" or "desligada"), 2)
- end
- })
- PlayerESPSection:Toggle({
- Title = "TeamCheck (Só Inimigos)",
- Description = "Mostra apenas jogadores inimigos",
- Default = false,
- Callback = function(Value)
- Config.PlayerESP_TeamCheck = Value
- for plr, pack in pairs(PlayerESP_Data) do
- if pack.highlight then
- pack.highlight.Enabled = shouldShowPlayerESP(plr)
- end
- if pack.hpGui then
- pack.hpGui.Enabled = shouldShowPlayerHP(plr)
- end
- end
- Notify(Value and "✅ Ativado" or "❌ Desativado", "TeamCheck " .. (Value and "ligado" or "desligado"), 2)
- end
- })
- local MeatESPSection = EspTab:Section({
- Title = "🥩 ESP de Carnes"
- })
- MeatESPSection:Toggle({
- Title = "ESP de Carnes",
- Description = "Mostra carnes no mapa",
- Default = false,
- Callback = function(Value)
- Config.EspMeatActive = Value
- if Value then
- EspCarnesStatusLabel:Set("🥩 ESP Carnes - Ligado")
- startMeatESP()
- Notify("✅ Ativado", "ESP Carnes ligado", 2)
- else
- EspCarnesStatusLabel:Set("🥩 ESP Carnes - Desligado")
- stopMeatESP()
- Notify("❌ Desativado", "ESP Carnes desligado", 2)
- end
- end
- })
- --// ========== ABA TELEPORT ========== //
- local TeleportTab = Window:Tab({
- Title = "Teleport",
- Icon = "navigation"
- })
- local QuickTPSection = TeleportTab:Section({
- Title = "🍖 Teleportes Rápidos"
- })
- QuickTPSection:Button({
- Title = "Teleportar para Carne Mais Próxima",
- Description = "TP para a carne mais perto",
- Callback = function()
- local meat, distance = findNearestMeat()
- if not meat then
- Notify("❌ Erro", "Nenhuma carne encontrada!", 2)
- return
- end
- safeTeleport(CFrame.new(meat.Position + Vector3.new(0, 3, 0)), "Carne")
- Notify("✅ Teleportado", "Teleportado para carne!", 2)
- end
- })
- local SpawnTPSection = TeleportTab:Section({
- Title = "🏠 Teleporte para Spawn"
- })
- SpawnTPSection:Button({
- Title = "Voltar ao Spawn",
- Description = "TP para seu spawn inicial",
- Callback = function()
- if not LastSpawnPosition then
- Notify("❌ Erro", "Spawn não detectado!", 2)
- return
- end
- safeTeleport(LastSpawnPosition, "Spawn")
- Notify("✅ Teleportado", "Voltou ao spawn!", 2)
- end
- })
- if #Config.SavedTeleports > 0 then
- local SavedTPSection = TeleportTab:Section({
- Title = "📍 Locais Salvos"
- })
- for i, data in ipairs(Config.SavedTeleports) do
- if data.position then
- local locationName = data.name or ("Local " .. i)
- SavedTPSection:Button({
- Title = "📍 " .. locationName,
- Description = "Teleportar para este local",
- Callback = function()
- local pos = data.position
- if not pos or not pos.X or not pos.Y or not pos.Z then
- Notify("❌ Erro", "Posição inválida!", 2)
- return
- end
- local targetCF = CFrame.new(pos.X, pos.Y, pos.Z)
- safeTeleport(targetCF, locationName)
- Notify("✅ Teleportado", locationName, 2)
- end
- })
- end
- end
- end
- --// ========== ABA OUTROS ========== //
- local OthersTab = Window:Tab({
- Title = "Outros",
- Icon = "settings"
- })
- local ClickTPSection = OthersTab:Section({
- Title = "🎯 Click Teleport"
- })
- ClickTPSection:Label({
- Text = "ℹ️ Sobre Click Teleport"
- })
- ClickTPSection:Label({
- Text = "Teleporte clicando em superfícies"
- })
- ClickTPSection:Label({
- Text = "✅ Personagem olha para onde clicou"
- })
- ClickTPSection:Label({
- Text = "✅ Sem efeitos visuais"
- })
- ClickTPSection:Button({
- Title = "🎯 Abrir Click Teleport",
- Description = "Abre interface independente",
- Callback = function()
- if not Config.ClickTeleportEnabled then
- ClickTeleportModule.Toggle(true)
- Notify("✅ Click Teleport", "Interface aberta!", 2)
- else
- Notify("ℹ️ Já Ativo", "Click Teleport já está aberto!", 2)
- end
- end
- })
- local AboutSection = OthersTab:Section({
- Title = "ℹ️ Informações do Script"
- })
- AboutSection:Label({
- Text = "⚙️ Interface WindUI"
- })
- AboutSection:Label({
- Text = "Todas funcionalidades mantidas!"
- })
- AboutSection:Label({
- Text = "✨ Design moderno e responsivo"
- })
- --// ========== AUTO FARM LOOP ========== //
- task.spawn(function()
- local index = 1
- while true do
- task.wait(Config.CheckDelay)
- if Config.AutoFarm then
- local currentLevel = getDinoLevelSilent()
- if currentLevel >= 60 then
- Config.AutoFarm = false
- AutoFarmStatusLabel:Set("💎 Auto Farm - Desligado")
- Notify("✅ Completo", "Nível 60 atingido!", 3)
- else
- local crystals = getSortedCrystals()
- if #crystals > 0 then
- for _, c in ipairs(crystals) do
- if not Config.AutoFarm or not c or not c.Parent then break end
- teleportToCrystal(c)
- local fixarConexao = RunService.Heartbeat:Connect(function()
- if Config.AutoFarm and c and c:IsDescendantOf(workspace) then
- local char = getCharacter()
- if char and char.PrimaryPart then
- char:SetPrimaryPartCFrame(CFrame.new(c.Position + Vector3.new(0, 4.5, 0)))
- end
- end
- end)
- local elapsed = 0
- while c:IsDescendantOf(workspace) and elapsed < 12 and Config.AutoFarm do
- task.wait(Config.CheckDelay)
- elapsed += Config.CheckDelay
- end
- fixarConexao:Disconnect()
- task.wait(Config.DelayBetweenCrystals)
- end
- else
- index = (index % #Config.PatrulhaPontos) + 1
- teleportTo(Config.PatrulhaPontos[index])
- task.wait(2)
- end
- end
- end
- end
- end)
- --// ========== AUTO COLETA ========== //
- RunService.Heartbeat:Connect(function()
- if not (Config.AutoFarm or Config.AutoColeta) then return end
- if not Config.podeExecutar then return end
- Config.podeExecutar = false
- local root = getHumanoidRootPart()
- if root then
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("ProximityPrompt") and obj.Parent and obj.Parent:IsA("BasePart") then
- if obj.Enabled and (obj.Parent.Position - root.Position).Magnitude <= Config.raioDeColeta then
- pcall(function()
- fireproximityprompt(obj)
- end)
- end
- end
- end
- end
- task.delay(Config.delayEntreTentativas, function()
- Config.podeExecutar = true
- end)
- end)
- --// ========== CLEANUP AO SAIR ========== //
- LocalPlayer.CharacterRemoving:Connect(function()
- ClickTeleportModule.Cleanup()
- end)
- --// ========== LOGS FINAIS ========== //
- print("╔═══════════════════════════════════════════════════════════╗")
- print("║ Pré-história - By: NickZScripts ║")
- print("╠═══════════════════════════════════════════════════════════╣")
- print("║ ✅ Interface WindUI carregada com sucesso! ║")
- print("║ 📌 Versão: " .. ScriptVersion .. " ║")
- print("║ 🎮 Jogador: " .. LocalPlayer.Name)
- print("║ 📊 Players: " .. #Players:GetPlayers() .. "/" .. Players.MaxPlayers)
- print("║ 📍 Teleports Salvos: " .. #Config.SavedTeleports)
- print("╠═══════════════════════════════════════════════════════════╣")
- print("║ 🎨 Interface: WindUI Library ║")
- print("║ 🚀 Sistema de Teleporte Ultra-Rápido ║")
- print("║ 👁️ ESP de Jogadores e Carnes ║")
- print("║ ⚡ Auto Farm + Auto Coleta ║")
- print("║ 🎯 Click Teleport Integrado ║")
- print("╚═══════════════════════════════════════════════════════════╝")
- Notify("🦖 Pré-história", "Script carregado!\nVersão: " .. ScriptVersion, 3)
- print("✅ Script totalmente carregado e funcional!")
Add Comment
Please, Sign In to add comment