local AztechTeam = {} local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local humanoid, character = nil, nil local isAdaptionActive = false -- Keeps track of Adaption toggle function AztechTeam.initializeCharacter() character = player.Character or player.CharacterAdded:Wait() humanoid = character:WaitForChild("Humanoid") end AztechTeam.initializeCharacter() player.CharacterAdded:Connect(AztechTeam.initializeCharacter) -- Reinitialize on character respawn function AztechTeam.setToolName(hotbarIndex, moveName) local hotbar = playerGui:FindFirstChild("Hotbar") if hotbar then local backpack = hotbar:FindFirstChild("Backpack") local hotbarFrame = backpack and backpack:FindFirstChild("Hotbar") local baseButton = hotbarFrame and hotbarFrame:FindFirstChild(tostring(hotbarIndex)) if baseButton then local toolNameLabel = baseButton:FindFirstChild("Base") and baseButton.Base:FindFirstChild("ToolName") if toolNameLabel then toolNameLabel.Text = moveName end end end end -- Set move names AztechTeam.setToolName(1, "Divine Punch") AztechTeam.setToolName(2, "Divine Barrage") AztechTeam.setToolName(3, "Slash") AztechTeam.setToolName(4, "Divine Drop") -- Change speed and settings local birdUSuck = { -- M1 replacements [10469493270] = {replacementId = "16515503507", startTime = 0, speed = 1}, -- 1st M1 [10469630950] = {replacementId = "15240216931", startTime = 0, speed = 1}, -- 2nd M1 [10469639222] = {replacementId = "15240176873", startTime = 0, speed = 1}, -- 3rd M1 [10469643643] = {replacementId = "16552234590", startTime = 0, speed = 1}, -- 4th M1 -- Moves [10468665991] = {replacementId = "18896127525", startTime = 0.2, speed = 1}, -- Move 1 [10466974800] = {replacementId = "15290930205", startTime = 0, speed = 1.3}, -- Move 2 [10471336737] = {replacementId = "16597912086", startTime = 0.5, speed = 1}, -- Move 3 [12510170988] = {replacementId = "18464372850", startTime = 2, speed = 1}, -- Move 4 -- moves like downslam etc... [10470104242] = {replacementId = "12684185971", startTime = 0, speed = 1}, -- Downslam [10503381238] = {replacementId = "14900168720", startTime = 1.3, speed = 1}, -- Mini Uppercut [10479335397] = {replacementId = "14046756619", startTime = 0, speed = 0.7}, -- Front Dash } function AztechTeam.stopAllAnimations() for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do track:Stop() end end function AztechTeam.playReplacementAnimation(config) local anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://" .. config.replacementId local track = humanoid:LoadAnimation(anim) track:Play() track:AdjustSpeed(0) track.TimePosition = config.startTime track:AdjustSpeed(config.speed) end humanoid.AnimationPlayed:Connect(function(animationTrack) local animId = tonumber(animationTrack.Animation.AnimationId:match("%d+")) local config = birdUSuck[animId] if config then AztechTeam.stopAllAnimations() AztechTeam.playReplacementAnimation(config) end end) character.DescendantAdded:Connect(function(descendant) if descendant:IsA("BodyVelocity") then descendant.Velocity = Vector3.new(descendant.Velocity.X, 0, descendant.Velocity.Z) end end) -- Create the Adaption tool (teleports away from attacks) local function createAdaptionTool() local tool = Instance.new("Tool") tool.Name = "Adaption" tool.RequiresHandle = false tool.Parent = player.Backpack tool.Activated:Connect(function() isAdaptionActive = not isAdaptionActive if isAdaptionActive then print("Adaption activated: Teleporting out of attacks!") else print("Adaption deactivated: Normal defense.") end end) end -- Function to teleport far enough to avoid attacks when Adaption is active function AztechTeam.teleportOutOfAttack() if isAdaptionActive then -- Generate a larger random offset for teleportation local randomOffset = Vector3.new(math.random(-50, 50), 0, math.random(-50, 50)) local newPosition = character.HumanoidRootPart.Position + randomOffset character:SetPrimaryPartCFrame(CFrame.new(newPosition)) end end -- Detect and teleport away from any incoming attacks character.DescendantAdded:Connect(function(descendant) if descendant:IsA("BodyVelocity") or descendant:IsA("BodyGyro") or descendant:IsA("BodyPosition") then -- If the attack would affect the player, teleport far away AztechTeam.teleportOutOfAttack() end end) -- Create the Regenerate tool (heals 50 health when activated) local function createRegenerateTool() local tool = Instance.new("Tool") tool.Name = "Regenerate" tool.RequiresHandle = false tool.Parent = player.Backpack tool.Activated:Connect(function() if humanoid.Health < humanoid.MaxHealth then humanoid.Health = math.min(humanoid.Health + 50, humanoid.MaxHealth) print("Regenerate activated: Health increased by 50.") else print("Health is already full.") end end) end -- Initialize the Adaption and Regenerate tools createAdaptionTool() createRegenerateTool() -- ult moves and name soon...