iOSdeveloper

Untitled

Feb 7th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.41 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character
  3.  
  4. local trail = Instance.new("Trail")
  5. trail.Parent = char.Head
  6. local a0 = Instance.new("Attachment", char.Head)
  7. a0.Name = "TrailAttact"
  8.  
  9. local a1 = Instance.new("Attachment", char.HumanoidRootPart)
  10. a1.Name = "TrailAttact1"
  11. trail.Attachment0 = a0
  12. trail.Attachment1 = a1
  13.  
  14. local startColor = Color3.fromRGB(255, 255, 224)
  15. local endColor = Color3.fromRGB(255, 255 ,224)
  16.  
  17. local sequence = ColorSequence.new(startColor, endColor)
  18.  
  19. trail.Color = sequence
  20.  
  21. local player = game.Players.LocalPlayer
  22. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  23.  
  24. local character = player.Character or player.CharacterAdded:Wait()
  25. local originalEffects = ReplicatedStorage.Assets.Auras.Puzzle.Particles.Head:FindFirstChild("Aura")
  26.  
  27. -- Check if originalEffects is valid
  28. if not originalEffects then
  29. error("The original effects object was not found in ReplicatedStorage.")
  30. end
  31.  
  32. local toros = character:FindFirstChild("Toros")
  33. local head = character:FindFirstChild("Head")
  34. local lefta = character:FindFirstChild("Left Arm")
  35. local righta = character:FindFirstChild("Right Arm")
  36. local leftl = character:FindFirstChild("Left Leg")
  37. local rightl = character:FindFirstChild("Right Leg")
  38.  
  39. local function applyEffect(part)
  40. if part then -- Check if the part exists
  41. local effects = originalEffects:Clone() -- Clone the effects for each part
  42.  
  43. -- Set the color using ColorSequence
  44. effects.Color = ColorSequence.new({
  45. ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 224)), -- Light yellow at the start
  46. ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 224)) -- Light yellow at the end
  47. })
  48.  
  49. effects.Parent = part -- Set the parent to the specified part
  50. else
  51. warn("Part not found!") -- Warn if the part is nil
  52. end
  53. end
  54.  
  55. -- Apply the effect to each part
  56. applyEffect(toros)
  57. applyEffect(head)
  58. applyEffect(righta)
  59. applyEffect(lefta)
  60. applyEffect(leftl)
  61. applyEffect(rightl)
  62.  
  63. wait(0.05)
  64.  
  65. applyEffect(toros)
  66. applyEffect(head)
  67. applyEffect(righta)
  68. applyEffect(lefta)
  69. applyEffect(leftl)
  70. applyEffect(rightl)
  71.  
  72. wait(0.05)
  73.  
  74. applyEffect(toros)
  75. applyEffect(head)
  76. applyEffect(righta)
  77. applyEffect(lefta)
  78. applyEffect(leftl)
  79. applyEffect(rightl)
  80.  
  81. wait(0.05)
  82.  
  83. applyEffect(toros)
  84. applyEffect(head)
  85. applyEffect(righta)
  86. applyEffect(lefta)
  87. applyEffect(leftl)
  88. applyEffect(rightl)
  89.  
  90. wait(0.05)
  91.  
  92. applyEffect(toros)
  93. applyEffect(head)
  94. applyEffect(righta)
  95. applyEffect(lefta)
  96. applyEffect(leftl)
  97. applyEffect(rightl)
  98.  
  99. wait(0.05)
  100.  
  101. applyEffect(toros)
  102. applyEffect(head)
  103. applyEffect(righta)
  104. applyEffect(lefta)
  105. applyEffect(leftl)
  106. applyEffect(rightl)
  107.  
  108. local TweenService = game:GetService("TweenService")
  109. local player = game:GetService("Players").LocalPlayer
  110. local playerGui = player.PlayerGui
  111. local inGameUI = playerGui:WaitForChild("InGameUI")
  112. local bottom = inGameUI:WaitForChild("Bottom")
  113. local abilities = bottom:WaitForChild("Abilities")
  114.  
  115. local ability2 = abilities:WaitForChild("2")
  116.  
  117. local customAbility = ability2:Clone()
  118. customAbility.Name = "Custom"
  119. customAbility.Timer.Text = "Machine Dribble"
  120. ability2:Destroy()
  121.  
  122. customAbility.Parent = abilities
  123.  
  124. local sound = Instance.new("Sound")
  125. sound.SoundId = "rbxassetid://10066968815"
  126. sound.Parent = customAbility
  127.  
  128. local isOnCooldown = false
  129.  
  130. customAbility.MouseButton1Click:Connect(function()
  131. sound:Play()
  132.  
  133. if isOnCooldown then
  134. print("Ability is on cooldown!")
  135. return
  136. end
  137.  
  138. isOnCooldown = true
  139. customAbility.Cooldown.UIGradient.Offset = Vector2.new(0, 0)
  140.  
  141. local tween = TweenService:Create(customAbility.Cooldown.UIGradient, TweenInfo.new(30), {Offset = Vector2.new(0, 1)})
  142. tween:Play()
  143. local TweenService = game:GetService("TweenService")
  144. local player = game.Players.LocalPlayer
  145. local character = player.Character or player.CharacterAdded:Wait()
  146. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  147. local animationId = "rbxassetid://74760828875758"
  148. local soundId = "rbxassetid://91616529441627"
  149.  
  150. local animation = Instance.new("Animation")
  151. animation.AnimationId = animationId
  152. local humanoid = character:WaitForChild("Humanoid")
  153. local animationTrack = humanoid:LoadAnimation(animation)
  154.  
  155. local function tweenToNortheastPosition()
  156. local currentPosition = humanoidRootPart.Position
  157. local offset = (humanoidRootPart.CFrame.LookVector + humanoidRootPart.CFrame.RightVector).unit * 35
  158. local targetPosition = currentPosition + offset
  159.  
  160. local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  161. local goal = {CFrame = CFrame.new(targetPosition)}
  162.  
  163. local tween = TweenService:Create(humanoidRootPart, tweenInfo, goal)
  164.  
  165. animationTrack:Play()
  166.  
  167. local sound = Instance.new("Sound")
  168. sound.SoundId = soundId
  169. sound.Parent = humanoidRootPart
  170. sound:Play()
  171.  
  172. tween:Play()
  173. tween.Completed:Wait()
  174. end
  175.  
  176. tweenToNortheastPosition()
  177.  
  178. local TweenService = game:GetService("TweenService")
  179. local player = game.Players.LocalPlayer
  180. local character = player.Character or player.CharacterAdded:Wait()
  181. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  182. local animationId = "rbxassetid://104460260153279"
  183. local soundId = "rbxassetid://91616529441627"
  184.  
  185. local animation = Instance.new("Animation")
  186. animation.AnimationId = animationId
  187. local humanoid = character:WaitForChild("Humanoid")
  188. local animationTrack = humanoid:LoadAnimation(animation)
  189.  
  190. local function tweenToClosePosition()
  191. local currentPosition = humanoidRootPart.Position
  192. local offset = humanoidRootPart.CFrame.LookVector * 20
  193. local targetPosition = currentPosition + offset
  194.  
  195. local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  196. local goal = {CFrame = CFrame.new(targetPosition)}
  197.  
  198. local tween = TweenService:Create(humanoidRootPart, tweenInfo, goal)
  199.  
  200. animationTrack:Play()
  201.  
  202. local sound = Instance.new("Sound")
  203. sound.SoundId = soundId
  204. sound.Parent = humanoidRootPart
  205. sound:Play()
  206.  
  207. tween:Play()
  208. tween.Completed:Wait()
  209.  
  210. -- Keep animation and sound playing
  211. end
  212.  
  213. tweenToClosePosition()
  214.  
  215. tween.Completed:Wait()
  216.  
  217. isOnCooldown = false
  218. print("Cooldown completed for Custom ability!")
  219. end)
  220.  
  221. print("Custom ability created and set up to play sound with cooldown and run scripts!")
Advertisement
Add Comment
Please, Sign In to add comment