iOSdeveloper

Untitled

Feb 10th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local character = player.Character or player.CharacterAdded:Wait()
  5. local originalEffects = ReplicatedStorage.Assets.Auras.Puzzle.Particles.Head:FindFirstChild("Aura")
  6.  
  7. -- Check if originalEffects is valid
  8. if not originalEffects then
  9. error("The original effects object was not found in ReplicatedStorage.")
  10. end
  11.  
  12. local toros = character:FindFirstChild("Toros")
  13. local head = character:FindFirstChild("Head")
  14. local lefta = character:FindFirstChild("Left Arm")
  15. local righta = character:FindFirstChild("Right Arm")
  16. local leftl = character:FindFirstChild("Left Leg")
  17. local rightl = character:FindFirstChild("Right Leg")
  18.  
  19. local function applyEffect(part)
  20. if part then -- Check if the part exists
  21. local effects = originalEffects:Clone() -- Clone the effects for each part
  22.  
  23. -- Set the color using ColorSequence
  24. effects.Color = ColorSequence.new({
  25. ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 224)), -- Light yellow at the start
  26. ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 224)) -- Light yellow at the end
  27. })
  28.  
  29. effects.Parent = part -- Set the parent to the specified part
  30. else
  31. warn("Part not found!") -- Warn if the part is nil
  32. end
  33. end
  34.  
  35. -- Apply the effect to each part
  36. applyEffect(toros)
  37. applyEffect(head)
  38. applyEffect(righta)
  39. applyEffect(lefta)
  40. applyEffect(leftl)
  41. applyEffect(rightl)
  42.  
  43. wait(0.05)
  44.  
  45. applyEffect(toros)
  46. applyEffect(head)
  47. applyEffect(righta)
  48. applyEffect(lefta)
  49. applyEffect(leftl)
  50. applyEffect(rightl)
  51.  
  52. wait(0.05)
  53.  
  54. applyEffect(toros)
  55. applyEffect(head)
  56. applyEffect(righta)
  57. applyEffect(lefta)
  58. applyEffect(leftl)
  59. applyEffect(rightl)
  60.  
  61. wait(0.05)
  62.  
  63. applyEffect(toros)
  64. applyEffect(head)
  65. applyEffect(righta)
  66. applyEffect(lefta)
  67. applyEffect(leftl)
  68. applyEffect(rightl)
  69.  
  70. wait(0.05)
  71.  
  72. applyEffect(toros)
  73. applyEffect(head)
  74. applyEffect(righta)
  75. applyEffect(lefta)
  76. applyEffect(leftl)
  77. applyEffect(rightl)
  78.  
  79. wait(0.05)
  80.  
  81. applyEffect(toros)
  82. applyEffect(head)
  83. applyEffect(righta)
  84. applyEffect(lefta)
  85. applyEffect(leftl)
  86. applyEffect(rightl)
Advertisement
Add Comment
Please, Sign In to add comment