Advertisement
so50que

Sonic to Invader hours

Dec 7th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | Gaming | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local character = player.Character or player.CharacterAdded:Wait()
  4. local humanoid = character:WaitForChild("Humanoid")
  5.  
  6. local playerGui = player:WaitForChild("PlayerGui")
  7. local hotbar = playerGui:FindFirstChild("Hotbar")
  8. local backpack = hotbar:FindFirstChild("Backpack")
  9. local hotbarFrame = backpack:FindFirstChild("Hotbar")
  10.  
  11. local buttonData = {
  12. {name = "1", text = "Dash Slash"},
  13. {name = "2", text = "Hunt"},
  14. {name = "3", text = "Spin Slash"},
  15. {name = "4", text = "Splatter"}, -- Basemovesets renamer
  16. }
  17.  
  18. for _, data in pairs(buttonData) do
  19. local baseButton = hotbarFrame:FindFirstChild(data.name).Base
  20. local ToolName = baseButton.ToolName
  21. ToolName.Text = data.text
  22. end
  23.  
  24. local function waitForGui()
  25. while true do
  26. local screenGui = playerGui:FindFirstChild("ScreenGui")
  27. if screenGui then
  28. local magicHealthFrame = screenGui:FindFirstChild("MagicHealth")
  29. if magicHealthFrame then
  30. local healthBar = magicHealthFrame:FindFirstChild("Health").Bar.Bar
  31. local textLabel = magicHealthFrame:FindFirstChild("TextLabel")
  32. if textLabel then
  33. healthBar.ImageColor3 = Color3.fromRGB(13, 255, 5)
  34. textLabel.Text = "『CLOCK STRINGS』" -- Ult Renamer
  35. return
  36. end
  37. end
  38. end
  39. wait(1)
  40. end
  41. end
  42.  
  43. waitForGui()
  44.  
  45. local replacementAnimations = {
  46. ["13376869471"] = {Id = "rbxassetid://13376869471", Speed = 1.0},
  47. ["13294790250"] = {Id = "rbxassetid://16002726844", Speed = 1.5},
  48. ["13362587853"] = {Id = "rbxassetid://14721837245", Speed = 1.3},
  49. ["13501296372"] = {Id = "rbxassetid://16597912086", Speed = 1.3},
  50. }
  51.  
  52. local function onAnimationPlayed(animationTrack)
  53. if player.Character and humanoid then
  54. local animationId = animationTrack.Animation.AnimationId:match("%d+")
  55. local replacementData = replacementAnimations[animationId]
  56.  
  57. if replacementData then
  58. animationTrack:Stop()
  59.  
  60. local newAnimation = Instance.new("Animation")
  61. newAnimation.AnimationId = replacementData.Id
  62. local newTrack = humanoid:LoadAnimation(newAnimation)
  63.  
  64. newTrack:Play()
  65. newTrack:AdjustSpeed(replacementData.Speed)
  66. end
  67. end
  68. end
  69.  
  70. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  71.  
  72. player.CharacterAdded:Connect(function(newCharacter)
  73. character = newCharacter
  74. humanoid = newCharacter:WaitForChild("Humanoid")
  75. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  76. end)
  77.  
  78. local Players = game:GetService("Players")
  79. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  80. local player = Players.LocalPlayer
  81. local character = player.Character or player.CharacterAdded:Wait()
  82. local humanoid = character:WaitForChild("Humanoid")
  83.  
  84. local replacementAnimations = {
  85. ["13362587853"] = "rbxassetid://14721837245",
  86. ["13501296372"] = "rbxassetid://16597912086",
  87. }
  88.  
  89. local function onAnimationPlayed(animationTrack)
  90. if player.Character and humanoid then
  91. local animationId = animationTrack.Animation.AnimationId:match("%d+")
  92. local replacementId = replacementAnimations[animationId]
  93.  
  94. if replacementId then
  95. animationTrack:Stop()
  96.  
  97. local newAnimation = Instance.new("Animation")
  98. newAnimation.AnimationId = replacementId
  99. local newTrack = humanoid:LoadAnimation(newAnimation)
  100. newTrack:Play()
  101.  
  102. if replacementId == "rbxassetid://14721837245" then
  103. wait(0.5)
  104. local Test = game:GetService("ReplicatedStorage").Resources.BatBarrageEffects.Swing.Root.Center
  105. local test = Test:Clone()
  106. test.Parent = character.HumanoidRootPart
  107.  
  108. for _, child in ipairs(test:GetChildren()) do
  109. if child:IsA("ParticleEmitter") then
  110. child.Color = ColorSequence.new(Color3.new(250, 150, 10))
  111. child:Emit(15)
  112. child.Enabled = true
  113. end
  114. end
  115.  
  116. wait(1)
  117. test:Destroy()
  118. end
  119. if replacementId == "rbxassetid://16597912086" then
  120. wait(0.6)
  121. local Test = game:GetService("ReplicatedStorage").Resources.CrabBeam.Beamy.End.Attachment.Attachment
  122. local test = Test:Clone()
  123. test.Parent = character.HumanoidRootPart
  124.  
  125. for _, child in ipairs(test:GetChildren()) do
  126. if child:IsA("ParticleEmitter") then
  127. child.Color = ColorSequence.new(Color3.new(0, 255, 0))
  128. child:Emit(15)
  129. child.Enabled = true
  130. end
  131. end
  132. wait(0.3)
  133. test:Destroy()
  134. end
  135. end
  136. end
  137. end
  138.  
  139. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  140.  
  141. player.CharacterAdded:Connect(function(newCharacter)
  142. character = newCharacter
  143. humanoid = newCharacter:WaitForChild("Humanoid")
  144. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  145. end)
  146.  
  147. local character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  148. local rightArm = character:FindFirstChild("Right Arm")
  149. local RGA = rightArm.RightGripAttachment
  150. local RSA = rightArm.RightShoulderAttachment
  151.  
  152. if rightArm then
  153. local T = Instance.new("Trail")
  154. T.Attachment0 = RGA
  155. T.Attachment1 = RSA
  156. T.Lifetime = 0.1
  157. T.Parent = character
  158. end
  159.  
  160. local leftArm = character:FindFirstChild("Left Arm")
  161. local LGA = leftArm.LeftGripAttachment
  162. local LSA = leftArm.LeftShoulderAttachment
  163.  
  164. if leftArm then
  165. local T2 = Instance.new("Trail")
  166. T2.Attachment0 = LGA
  167. T2.Attachment1 = LSA
  168. T2.Lifetime = 0.1
  169. T2.Parent = character
  170. end
  171. game:GetService("StarterGui"):SetCore("SendNotification",{
  172. Title = "Sonic to Invader",
  173. Text = "By Sundayo ",
  174. Button1 = "👍",
  175. Duration = 2
  176. })
Tags: TSB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement