-- Global Configuration Options Integration getgenv().Options = { ["Jitteryness"] = Vector3.new(30.5, 0, 0), ["Jitterless"] = true, ["Type"] = "Godmode", -- Updated type for Godmode Integration ["InstantBullet"] = { ["Bool"] = true, ["SmartLock"] = true }, ["R15Method"] = "Align", ["R6Method"] = "Align", ["BonusProperties"] = true, ["RigAnimations"] = true, ["LoadLibrary"] = false, ["Logging"] = true, ["LimitHatsPerLimb"] = false } local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- Tracking States local isReanimated = false local godmodeEnabled = false local reanimConnections = {} local godmodeConnection = nil -- Configuration Mapping for Hats (R6 vs R15 compatibility) local function getLimbMapping() local char = LocalPlayer.Character if not char then return {} end local hum = char:FindFirstChildOfClass("Humanoid") local isR15 = hum and (hum.RigType == Enum.RigType.R15) if isR15 then return { ["LeftUpperArm"] = "LeftArm", ["LeftLowerArm"] = "LeftArm", ["LeftHand"] = "LeftArm", ["RightUpperArm"] = "RightArm", ["RightLowerArm"] = "RightArm", ["RightHand"] = "RightArm", ["LeftUpperLeg"] = "LeftLeg", ["LeftLowerLeg"] = "LeftLeg", ["LeftFoot"] = "LeftLeg", ["RightUpperLeg"] = "RightLeg", ["RightLowerLeg"] = "RightLeg", ["RightFoot"] = "RightLeg" } else return { ["Left Arm"] = "LeftArm", ["Right Arm"] = "RightArm", ["Left Leg"] = "LeftLeg", ["Right Leg"] = "RightLeg" } end end -- Locates accessories actively attached to your character local function getEquippedHats(character) local equipped = {} for _, accessory in ipairs(character:GetChildren()) do if accessory:IsA("Accessory") then local handle = accessory:FindFirstChild("Handle") if handle and handle:IsA("BasePart") then table.insert(equipped, handle) end end end return equipped end -- Physics Claim Bypass local function claimPhysicsModern(part) if part:IsA("BasePart") then if getgenv().Options.Jitterless then part.Velocity = getgenv().Options.Jitteryness else part.Velocity = Vector3.new(0, 30.05, 0) end part.CanCollide = false end end -- ==================== REANIMATION LOGIC ==================== local function startReanimation(character) if isReanimated or not character then return end isReanimated = true local limbMapping = getLimbMapping() local availableHats = getEquippedHats(character) for _, object in ipairs(character:GetDescendants()) do if object:IsA("Motor6D") and (limbMapping[object.Part0.Name] or limbMapping[object.Part1.Name]) then object.Enabled = false local attachment = Instance.new("Attachment", object.Parent) attachment.Name = "ReanimAttachment" end end local heartBeatConnection = RunService.Heartbeat:Connect(function() if not isReanimated or not character.Parent then return end for _, limb in ipairs(character:GetChildren()) do if limb:IsA("BasePart") and limbMapping[limb.Name] then claimPhysicsModern(limb) limb.Transparency = 1 end end local hatIndex = 1 for limbName, _ in pairs(limbMapping) do local limb = character:FindFirstChild(limbName) local currentHatHandle = availableHats[hatIndex] if limb and currentHatHandle then claimPhysicsModern(currentHatHandle) currentHatHandle.CFrame = limb.CFrame if not getgenv().Options.LimitHatsPerLimb then hatIndex = hatIndex + 1 end end end end) table.insert(reanimConnections, heartBeatConnection) if getgenv().Options.Logging then print("[Framework]: Reanimation Structure Initialized.") end end local function stopReanimation() if not isReanimated then return end isReanimated = false for _, conn in ipairs(reanimConnections) do conn:Disconnect() end reanimConnections = {} end -- ==================== GODMODE V5 FRAMEWORK ==================== local function saveAppearance(character) if not character then return nil end local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid then return nil end local description = humanoid:GetAppliedDescription() if not description then description = Instance.new("HumanoidDescription") end local backup = { Description = description:Clone(), Accessories = {}, Clothing = {} } for _, item in ipairs(character:GetChildren()) do if item:IsA("Accessory") or item:IsA("Hat") then table.insert(backup.Accessories, item:Clone()) elseif item:IsA("Shirt") or item:IsA("Pants") or item:IsA("ShirtGraphic") or item:IsA("PantsGraphic") then table.insert(backup.Clothing, item:Clone()) end end return backup end local function restoreAppearance(character, backup) if not character or not backup then return end local newHumanoid = character:FindFirstChildOfClass("Humanoid") if not newHumanoid then return end pcall(function() newHumanoid:ApplyDescription(backup.Description) end) for _, accClone in ipairs(backup.Accessories) do pcall(function() newHumanoid:AddAccessory(accClone) end) end for _, clothClone in ipairs(backup.Clothing) do pcall(function() clothClone.Parent = character end) end if getgenv().Options.Logging then print("✅ Clothes & accessories fully restored!") end end local function applyGodmode(character) if not character then return end task.wait(0.8) local appearanceBackup = saveAppearance(character) local oldHumanoid = character:FindFirstChildOfClass("Humanoid") if oldHumanoid then oldHumanoid:Destroy() end local newHumanoid = Instance.new("Humanoid") newHumanoid.Parent = character newHumanoid.MaxHealth = math.huge newHumanoid.Health = math.huge newHumanoid.WalkSpeed = 50 newHumanoid.JumpPower = 50 newHumanoid.AutoRotate = true newHumanoid.HipHeight = 2.0 newHumanoid.PlatformStand = false newHumanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false) newHumanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) local root = character:FindFirstChild("HumanoidRootPart") if root then root.Anchored = false root.CFrame = root.CFrame + Vector3.new(0, 0.5, 0) end task.delay(0.2, function() if newHumanoid and newHumanoid.Parent then newHumanoid:ChangeState(Enum.HumanoidStateType.Running) end end) task.wait(0.3) restoreAppearance(character, appearanceBackup) -- Run reanimation alongside Godmode mapping if requested if isReanimated then stopReanimation() startReanimation(character) end newHumanoid.HealthChanged:Connect(function(health) if health < newHumanoid.MaxHealth * 0.9 then newHumanoid.Health = newHumanoid.MaxHealth newHumanoid:ChangeState(Enum.HumanoidStateType.Running) end end) local diedConn diedConn = newHumanoid.Died:Connect(function() diedConn:Disconnect() task.wait(0.1) if newHumanoid and newHumanoid.Parent then newHumanoid.Health = newHumanoid.MaxHealth newHumanoid:ChangeState(Enum.HumanoidStateType.Running) end end) print("✅ Godmode v5 activated!") end -- ==================== UNIFIED CONTROL GUI ==================== local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "FedoraHatsReanimGui" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Name = "MainFrame" Frame.Size = UDim2.new(0, 220, 0, 150) Frame.Position = UDim2.new(0.05, 0, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 30) Title.BackgroundColor3 = Color3.fromRGB(15, 15, 15) Title.Text = "Fedora hats reanimation" Title.TextColor3 = Color3.fromRGB(0, 255, 120) Title.Font = Enum.Font.GothamBold Title.TextSize = 14 Title.Parent = Frame -- Godmode Controls local GodmodeStatus = Instance.new("TextLabel") GodmodeStatus.Size = UDim2.new(1, 0, 0, 20) GodmodeStatus.Position = UDim2.new(0, 0, 0, 35) GodmodeStatus.BackgroundTransparency = 1 GodmodeStatus.Text = "Godmode Status: OFF" GodmodeStatus.TextColor3 = Color3.fromRGB(255, 80, 80) GodmodeStatus.Font = Enum.Font.Gotham GodmodeStatus.TextSize = 12 GodmodeStatus.Parent = Frame local GodmodeButton = Instance.new("TextButton") GodmodeButton.Size = UDim2.new(0.9, 0, 0, 30) GodmodeButton.Position = UDim2.new(0.05, 0, 0, 55) GodmodeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) GodmodeButton.Text = "ENABLE GODMODE" GodmodeButton.TextColor3 = Color3.fromRGB(255, 255, 255) GodmodeButton.Font = Enum.Font.GothamBold GodmodeButton.TextSize = 12 GodmodeButton.Parent = Frame -- Reanimation Controls local ReanimStatus = Instance.new("TextLabel") ReanimStatus.Size = UDim2.new(1, 0, 0, 20) ReanimStatus.Position = UDim2.new(0, 0, 0, 90) ReanimStatus.BackgroundTransparency = 1 ReanimStatus.Text = "Reanim Status: OFF" ReanimStatus.TextColor3 = Color3.fromRGB(255, 80, 80) ReanimStatus.Font = Enum.Font.Gotham ReanimStatus.TextSize = 12 ReanimStatus.Parent = Frame local ReanimButton = Instance.new("TextButton") ReanimButton.Size = UDim2.new(0.9, 0, 0, 30) ReanimButton.Position = UDim2.new(0.05, 0, 0, 110) ReanimButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ReanimButton.Text = "ENABLE REANIM" ReanimButton.TextColor3 = Color3.fromRGB(255, 255, 255) ReanimButton.Font = Enum.Font.GothamBold ReanimButton.TextSize = 12 ReanimButton.Parent = Frame -- GUI Toggle Logic GodmodeButton.MouseButton1Click:Connect(function() godmodeEnabled = not godmodeEnabled if godmodeEnabled then GodmodeStatus.Text = "Godmode Status: ON" GodmodeStatus.TextColor3 = Color3.fromRGB(0, 255, 100) GodmodeButton.Text = "DISABLE GODMODE" if LocalPlayer.Character then applyGodmode(LocalPlayer.Character) end godmodeConnection = LocalPlayer.CharacterAdded:Connect(function(char) if godmodeEnabled then applyGodmode(char) end end) else GodmodeStatus.Text = "Godmode Status: OFF" GodmodeStatus.TextColor3 = Color3.fromRGB(255, 80, 80) GodmodeButton.Text = "ENABLE GODMODE" if godmodeConnection then godmodeConnection:Disconnect() end end end) ReanimButton.MouseButton1Click:Connect(function() if isReanimated then stopReanimation() ReanimStatus.Text = "Reanim Status: OFF" ReanimStatus.TextColor3 = Color3.fromRGB(255, 80, 80) ReanimButton.Text = "ENABLE REANIM" else if LocalPlayer.Character then startReanimation(LocalPlayer.Character) end ReanimStatus.Text = "Reanim Status: ON" ReanimStatus.TextColor3 = Color3.fromRGB(0, 255, 100) ReanimButton.Text = "DISABLE REANIM" end end) print("✅ Unified Framework Loaded! Title updated to 'Fedora hats reanimation'.")