-- SEU CÓDIGO ORIGINAL COMPLETO (sem nenhuma alteração na mecânica)
-- Apenas adicionei a ativação automática no final
local player = game.Players.LocalPlayer
-- Sua função getDamageRemotes (original)
local function getDamageRemotes()
local remotes = {}
-- Sua lógica original aqui
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("RemoteEvent") or obj:IsA("RemoteFunction") then
if string.lower(obj.Name):find("damage") or
string.lower(obj.Name):find("hit") or
string.lower(obj.Name):find("attack") then
table.insert(remotes, obj)
end
end
end
return remotes
end
-- SUA FUNÇÃO ORIGINAL (COMPLETA, SEM ALTERAÇÕES)
local function ativarGodMode()
_G.GodModeActive = true
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char and char:FindFirstChildOfClass("Humanoid")
local root = char and char:FindFirstChild("HumanoidRootPart")
if hum and root then
-- [MECÂNICA FUSÃO 1: VIDA INFINITA + VISUAL 0]
hum.MaxHealth = math.huge
hum.Health = 0
hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
-- [MECÂNICA FUSÃO 2: BLOQUEIO DE REMOTES (HOOK)]
local remotes = getDamageRemotes()
if setreadonly and getrawmetatable then
local mt = getrawmetatable(game)
local old = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(self, ...)
if _G.GodModeActive and table.find(remotes, self) then
return nil
end
return old(self, ...)
end)
setreadonly(mt, true)
end
-- [MECÂNICA FUSÃO 3: LOOP DE PROTEÇÃO TOTAL]
task.spawn(function()
while _G.GodModeActive and char and char.Parent do
hum.Health = 0
if hum.MaxHealth ~= math.huge then hum.MaxHealth = math.huge end
local parts = workspace:GetPartBoundsInRadius(root.Position, 10)
for _, part in ipairs(parts) do
if part:IsA("BasePart") and not part:IsDescendantOf(char) then
part.CanTouch = false
end
end
for _, tool in pairs(char:GetChildren()) do
if tool:IsA("Tool") then
local ds = tool:FindFirstChild("Damage") or tool:FindFirstChild("SwordScript")
if ds then ds.Disabled = true end
end
end
pcall(function() root:SetNetworkOwner(player) end)
if root.Position.Y < -500 then
root.CFrame = CFrame.new(root.Position.X, 100, root.Position.Z)
end
hum:ChangeState(Enum.HumanoidStateType.GettingUp)
task.wait(0.1)
end
end)
-- Conexão de Morte (Auto-Respawn)
hum.Died:Connect(function()
if _G.GodModeActive then
player:LoadCharacter()
end
end)
print("🔥 God5 HÍBRIDO ATIVADO!")
end
end
-- ÚNICA COISA ADICIONADA: ATIVAÇÃO AUTOMÁTICA
print("🚀 Script carregado, aguardando personagem...")
-- Função para esperar o personagem e ativar
local function esperarEAtivar()
-- Aguarda o personagem existir
local char = player.Character or player.CharacterAdded:Wait()
-- Aguarda o Humanoid e RootPart existirem
local hum = char:WaitForChild("Humanoid", 5)
local root = char:WaitForChild("HumanoidRootPart", 5)
if hum and root then
print("✅ Personagem pronto, ativando God Mode...")
ativarGodMode()
end
end
-- Ativa quando entrar no jogo
esperarEAtivar()
-- Ativa quando renascer/mudar de personagem
player.CharacterAdded:Connect(function()
print("🔄 Personagem mudou, reativando...")
task.wait(0.5) -- Pequeno delay para garantir que carregou
ativarGodMode()
end)
Comments
No comments yet
Be the first to share your thoughts!