Advertisement
TheHatBoys

Mahoraga?

Nov 21st, 2024
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.52 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. local AztechTeam = {}
  5.  
  6. local player = game.Players.LocalPlayer
  7. local playerGui = player:WaitForChild("PlayerGui")
  8. local humanoid, character = nil, nil
  9. local isAdaptionActive = false -- Keeps track of Adaption toggle
  10.  
  11. function AztechTeam.initializeCharacter()
  12. character = player.Character or player.CharacterAdded:Wait()
  13. humanoid = character:WaitForChild("Humanoid")
  14. end
  15.  
  16. AztechTeam.initializeCharacter()
  17. player.CharacterAdded:Connect(AztechTeam.initializeCharacter) -- Reinitialize on character respawn
  18.  
  19. function AztechTeam.setToolName(hotbarIndex, moveName)
  20. local hotbar = playerGui:FindFirstChild("Hotbar")
  21. if hotbar then
  22. local backpack = hotbar:FindFirstChild("Backpack")
  23. local hotbarFrame = backpack and backpack:FindFirstChild("Hotbar")
  24. local baseButton = hotbarFrame and hotbarFrame:FindFirstChild(tostring(hotbarIndex))
  25. if baseButton then
  26. local toolNameLabel = baseButton:FindFirstChild("Base") and baseButton.Base:FindFirstChild("ToolName")
  27. if toolNameLabel then
  28. toolNameLabel.Text = moveName
  29. end
  30. end
  31. end
  32. end
  33.  
  34. -- Set move names
  35. AztechTeam.setToolName(1, "Divine Punch")
  36. AztechTeam.setToolName(2, "Divine Barrage")
  37. AztechTeam.setToolName(3, "Slash")
  38. AztechTeam.setToolName(4, "Divine Drop")
  39.  
  40. -- Change speed and settings
  41. local birdUSuck = {
  42. -- M1 replacements
  43. [10469493270] = {replacementId = "16515503507", startTime = 0, speed = 1}, -- 1st M1
  44. [10469630950] = {replacementId = "15240216931", startTime = 0, speed = 1}, -- 2nd M1
  45. [10469639222] = {replacementId = "15240176873", startTime = 0, speed = 1}, -- 3rd M1
  46. [10469643643] = {replacementId = "16552234590", startTime = 0, speed = 1}, -- 4th M1
  47.  
  48. -- Moves
  49. [10468665991] = {replacementId = "18896127525", startTime = 0.2, speed = 1}, -- Move 1
  50. [10466974800] = {replacementId = "15290930205", startTime = 0, speed = 1.3}, -- Move 2
  51. [10471336737] = {replacementId = "16597912086", startTime = 0.5, speed = 1}, -- Move 3
  52. [12510170988] = {replacementId = "18464372850", startTime = 2, speed = 1}, -- Move 4
  53.  
  54. -- moves like downslam etc...
  55. [10470104242] = {replacementId = "12684185971", startTime = 0, speed = 1}, -- Downslam
  56. [10503381238] = {replacementId = "14900168720", startTime = 1.3, speed = 1}, -- Mini Uppercut
  57. [10479335397] = {replacementId = "14046756619", startTime = 0, speed = 0.7}, -- Front Dash
  58. }
  59.  
  60. function AztechTeam.stopAllAnimations()
  61. for _, track in ipairs(humanoid:GetPlayingAnimationTracks()) do
  62. track:Stop()
  63. end
  64. end
  65.  
  66. function AztechTeam.playReplacementAnimation(config)
  67. local anim = Instance.new("Animation")
  68. anim.AnimationId = "rbxassetid://" .. config.replacementId
  69. local track = humanoid:LoadAnimation(anim)
  70. track:Play()
  71. track:AdjustSpeed(0)
  72. track.TimePosition = config.startTime
  73. track:AdjustSpeed(config.speed)
  74. end
  75.  
  76. humanoid.AnimationPlayed:Connect(function(animationTrack)
  77. local animId = tonumber(animationTrack.Animation.AnimationId:match("%d+"))
  78. local config = birdUSuck[animId]
  79. if config then
  80. AztechTeam.stopAllAnimations()
  81. AztechTeam.playReplacementAnimation(config)
  82. end
  83. end)
  84.  
  85. character.DescendantAdded:Connect(function(descendant)
  86. if descendant:IsA("BodyVelocity") then
  87. descendant.Velocity = Vector3.new(descendant.Velocity.X, 0, descendant.Velocity.Z)
  88. end
  89. end)
  90.  
  91. -- Create the Adaption tool (teleports away from attacks)
  92. local function createAdaptionTool()
  93. local tool = Instance.new("Tool")
  94. tool.Name = "Adaption"
  95. tool.RequiresHandle = false
  96. tool.Parent = player.Backpack
  97.  
  98. tool.Activated:Connect(function()
  99. isAdaptionActive = not isAdaptionActive
  100. if isAdaptionActive then
  101. print("Adaption activated: Teleporting out of attacks!")
  102. else
  103. print("Adaption deactivated: Normal defense.")
  104. end
  105. end)
  106. end
  107.  
  108. -- Function to teleport far enough to avoid attacks when Adaption is active
  109. function AztechTeam.teleportOutOfAttack()
  110. if isAdaptionActive then
  111. -- Generate a larger random offset for teleportation
  112. local randomOffset = Vector3.new(math.random(-50, 50), 0, math.random(-50, 50))
  113. local newPosition = character.HumanoidRootPart.Position + randomOffset
  114. character:SetPrimaryPartCFrame(CFrame.new(newPosition))
  115. end
  116. end
  117.  
  118. -- Detect and teleport away from any incoming attacks
  119. character.DescendantAdded:Connect(function(descendant)
  120. if descendant:IsA("BodyVelocity") or descendant:IsA("BodyGyro") or descendant:IsA("BodyPosition") then
  121. -- If the attack would affect the player, teleport far away
  122. AztechTeam.teleportOutOfAttack()
  123. end
  124. end)
  125.  
  126. -- Create the Regenerate tool (heals 50 health when activated)
  127. local function createRegenerateTool()
  128. local tool = Instance.new("Tool")
  129. tool.Name = "Regenerate"
  130. tool.RequiresHandle = false
  131. tool.Parent = player.Backpack
  132.  
  133. tool.Activated:Connect(function()
  134. if humanoid.Health < humanoid.MaxHealth then
  135. humanoid.Health = math.min(humanoid.Health + 50, humanoid.MaxHealth)
  136. print("Regenerate activated: Health increased by 50.")
  137. else
  138. print("Health is already full.")
  139. end
  140. end)
  141. end
  142.  
  143. -- Initialize the Adaption and Regenerate tools
  144. createAdaptionTool()
  145. createRegenerateTool()
  146.  
  147. -- ult moves and name soon...
  148.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement