local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local player = [Link]
if not player then return end
local TOGGLE_KEY = [Link].G
local ANIMATION_ID = ""
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = [Link]("ScreenGui")
[Link] = "DevGodToggleGui"
[Link] = false
[Link] = playerGui
local container = [Link]("Frame")
[Link] = "LeftMiddleContainer"
[Link] = [Link](0, 64, 0, 64)
[Link] = [Link](0, 0.5)
[Link] = [Link](0, 10, 0.5, 0)
[Link] = 1
[Link] = screenGui
local shadow = [Link]("ImageLabel")
[Link] = "Shadow"
[Link] = [Link](1, 10, 1, 10)
[Link] = [Link](0, -5, 0, -5)
[Link] = 1
[Link] = "rbxassetid://6014261993"
[Link] = 0.6
[Link] = [Link]
[Link] = [Link](10,10,118,118)
[Link] = container
local button = [Link]("ImageButton")
[Link] = "GodToggleButton"
[Link] = [Link](1, -8, 1, -8)
[Link] = [Link](0, 4, 0, 4)
[Link] = 1
[Link] = ""
[Link] = container
[Link] = false
local clickSound = [Link]("Sound")
[Link] = "ClickSound"
[Link] = "rbxassetid://6895079853"
[Link] = 8
[Link] = button
local bg = [Link]("Frame")
[Link] = "BG"
[Link] = [Link](1,1)
bg.BackgroundColor3 = [Link](36, 36, 36)
[Link] = 0
[Link] = button
local corner = [Link]("UICorner")
[Link] = [Link](1, 0)
[Link] = bg
local stroke = [Link]("UIStroke")
[Link] = [Link]
[Link] = 1
[Link] = [Link](200,200,200)
[Link] = 0.6
[Link] = bg
local gradient = [Link]("UIGradient")
[Link] = [Link]{
[Link](0, [Link](50,50,50)),
[Link](1, [Link](30,30,30))
}
[Link] = 60
[Link] = bg
local indicator = [Link]("Frame")
[Link] = "Indicator"
[Link] = [Link](0.75, 0, 0.75, 0)
[Link] = [Link](0.5, 0, 0.5, 0)
[Link] = [Link](0.5, 0.5)
indicator.BackgroundColor3 = [Link](220,220,220)
[Link] = 0
[Link] = bg
local indicatorCorner = [Link]("UICorner")
[Link] = [Link](1, 0)
[Link] = indicator
local indicatorStroke = [Link]("UIStroke")
[Link] = 1
[Link] = [Link](120,120,120)
[Link] = 0.4
[Link] = indicator
local label = [Link]("TextLabel")
[Link] = "Icon"
[Link] = [Link](1, 0, 1, 0)
[Link] = 1
[Link] = "✚"
[Link] = [Link]
[Link] = true
label.TextColor3 = [Link](40,40,40)
[Link] = indicator
local tooltip = [Link]("TextLabel")
[Link] = "Tooltip"
[Link] = [Link](0, 160, 0, 30)
[Link] = [Link](1, 12, 0.5, -15)
[Link] = [Link](0, 0.5)
tooltip.BackgroundColor3 = [Link](25,25,25)
[Link] = 0
[Link] = "God Mode (local) : OFF"
[Link] = [Link]
[Link] = 14
tooltip.TextColor3 = [Link](220,220,220)
[Link] = true
[Link] = container
local tooltipCorner = [Link]("UICorner")
[Link] = [Link](0, 6)
[Link] = tooltip
local tooltipStroke = [Link]("UIStroke")
[Link] = 1
[Link] = [Link](55,55,55)
[Link] = 0.6
[Link] = tooltip
local godMode = false
local humanoid = nil
local hrp = nil
local healthConn = nil
local lastCFrame = nil
local posTrackerConn = nil
local debounceRestore = false
local animTrack = nil
local function tryPlayCharacterAnimation()
if not ANIMATION_ID or ANIMATION_ID == "" then return end
if not humanoid then return end
pcall(function()
local anim = [Link]("Animation")
[Link] =
[Link] = "DevGodAnim"
[Link] = player
animTrack = humanoid:LoadAnimation(anim)
[Link] = [Link]
animTrack:Play()
end)
end
local function stopCharacterAnimation()
if animTrack then
pcall(function() animTrack:Stop() end)
animTrack = nil
end
end
local function setIndicatorState(enabled)
if enabled then
indicator.BackgroundColor3 = [Link](0, 200, 120)
label.TextColor3 = [Link](10,10,10)
[Link] = "God Mode (local) : ON"
else
indicator.BackgroundColor3 = [Link](220,220,220)
label.TextColor3 = [Link](40,40,40)
[Link] = "God Mode (local) : OFF"
end
end
local function cleanupConns()
if healthConn then
healthConn:Disconnect()
healthConn = nil
end
if posTrackerConn then
posTrackerConn:Disconnect()
posTrackerConn = nil
end
end
local function startPositionTracking()
cleanupConns()
posTrackerConn = [Link]:Connect(function(dt)
if hrp and [Link] then
lastCFrame = [Link]
end
end)
end
local function startHealthWatcher()
if not humanoid then return end
local previousHealth = [Link]
healthConn = humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if not godMode then
previousHealth = [Link]
return
end
if [Link] < previousHealth and not debounceRestore then
debounceRestore = true
pcall(function()
[Link] = previousHealth
end)
[Link](0.05, function() debounceRestore = false end)
else
previousHealth = [Link]
end
end)
end
local function onCharacterAdded(char)
cleanupConns()
humanoid = char:FindFirstChildOfClass("Humanoid") or
char:WaitForChild("Humanoid", 5)
hrp = char:FindFirstChild("HumanoidRootPart") or
char:WaitForChild("HumanoidRootPart", 5)
if not humanoid or not hrp then
humanoid = nil
hrp = nil
return
end
startPositionTracking()
startHealthWatcher()
if godMode and lastCFrame then
[Link](function()
if hrp and [Link] then
pcall(function()
[Link] = lastCFrame
end)
end
end)
end
[Link]:Connect(function()
cleanupConns()
stopCharacterAnimation()
end)
end
if [Link] then
onCharacterAdded([Link])
end
[Link]:Connect(onCharacterAdded)
local function uiPressAnimation()
TweenService:Create(container, [Link](0.08, [Link],
[Link]), {Position = [Link](0, 8, 0.5, 0)}):Play()
TweenService:Create(button, [Link](0.08, [Link],
[Link]), {Rotation = 6}):Play()
[Link](0.08, function()
TweenService:Create(container, [Link](0.15,
[Link], [Link]), {Position = [Link](0, 10,
0.5, 0)}):Play()
TweenService:Create(button, [Link](0.15, [Link],
[Link]), {Rotation = 0}):Play()
end)
TweenService:Create(indicator, [Link](0.12, [Link],
[Link]), {Size = [Link](0.82,0,0.82,0)}):Play()
[Link](0.12, function()
TweenService:Create(indicator, [Link](0.18, [Link],
[Link]), {Size = [Link](0.75,0,0.75,0)}):Play()
end)
end
local function toggleGod()
godMode = not godMode
setIndicatorState(godMode)
uiPressAnimation()
if clickSound then clickSound:Play() end
if godMode then
tryPlayCharacterAnimation()
print("God mode activé (local) pour", [Link])
else
stopCharacterAnimation()
print("God mode désactivé")
end
end
button.MouseButton1Click:Connect(toggleGod)
[Link]:Connect(function(input, processed)
if processed then return end
if [Link] == TOGGLE_KEY then
toggleGod()
end
end)
[Link]:Connect(function(child)
if child == screenGui then
cleanupConns()
end
end)
[Link] = false
[Link](0.02, function()
[Link] = true
TweenService:Create(container, [Link](0.25, [Link],
[Link]), {Position = [Link](0, 10, 0.5, 0)}):Play()
end)