Familycade

Untitled

Nov 22nd, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. -- Loadstring Script for Moves and Ultimate Abilities
  2. getgenv().color = Color3.new(1, 0.13, 0) -- Set global color
  3.  
  4. -- Set Move Names
  5. local function setMoveName(slot, name)
  6. local player = game.Players.LocalPlayer
  7. local playerGui = player:WaitForChild("PlayerGui")
  8. local hotbar = playerGui:WaitForChild("Hotbar")
  9. local backpack = hotbar:WaitForChild("Backpack")
  10. local hotbarFrame = backpack:WaitForChild("Hotbar")
  11. local baseButton = hotbarFrame:WaitForChild(tostring(slot)).Base
  12. baseButton.ToolName.Text = name
  13. end
  14.  
  15. setMoveName(1, "Firestorm Hutch")
  16. setMoveName(2, "Burning Grasp")
  17. setMoveName(3, "Heatwave Shock")
  18. setMoveName(4, "Knowledge Burn")
  19.  
  20. -- Set Ultimate Name
  21. local function setUltimateName(name)
  22. local player = game.Players.LocalPlayer
  23. local playerGui = player:WaitForChild("PlayerGui")
  24.  
  25. local function updateUltimateName()
  26. local screenGui = playerGui:FindFirstChild("ScreenGui")
  27. if screenGui then
  28. local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  29. if magicHealthFrame then
  30. local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  31. if textLabel then
  32. textLabel.Text = name
  33. end
  34. end
  35. end
  36. end
  37.  
  38. playerGui.DescendantAdded:Connect(updateUltimateName)
  39. updateUltimateName()
  40. end
  41.  
  42. setUltimateName("RAMPANT ANGER")
  43.  
  44. -- Handle Moves
  45. local function setupAnimation(animationId, newAnimationId, playSpeed, stopDelay)
  46. local player = game.Players.LocalPlayer
  47. local character = player.Character or player.CharacterAdded:Wait()
  48. local humanoid = character:WaitForChild("Humanoid")
  49.  
  50. local function onAnimationPlayed(animationTrack)
  51. if animationTrack.Animation.AnimationId == "rbxassetid://" .. animationId then
  52. -- Stop all animations
  53. for _, animTrack in pairs(humanoid:GetPlayingAnimationTracks()) do
  54. animTrack:Stop()
  55. end
  56.  
  57. -- Play the new animation
  58. local newAnim = Instance.new("Animation")
  59. newAnim.AnimationId = "rbxassetid://" .. newAnimationId
  60. local anim = humanoid:LoadAnimation(newAnim)
  61.  
  62. anim:Play()
  63. anim:AdjustSpeed(playSpeed or 1)
  64.  
  65. if stopDelay then
  66. delay(stopDelay, function()
  67. anim:Stop()
  68. end)
  69. end
  70. end
  71. end
  72.  
  73. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  74. end
  75.  
  76. -- Assign animations for each move
  77. setupAnimation(12273188754, 15121659862, 1) -- Move 1
  78. setupAnimation(12296113986, 17120635926, 0.5) -- Move 2
  79. setupAnimation(12309835105, 18716478642, 1.1, 1.8) -- Move 3
  80. setupAnimation(13603396939, 18716683497, 1) -- Move 4
  81.  
  82. -- Load additional effects
  83. loadstring(game:HttpGet("https://raw.githubusercontent.com/felixsidzed/veryCoolScripts/refs/heads/main/Change%20Effects%20TSBG.lua"))()
Advertisement
Add Comment
Please, Sign In to add comment