Advertisement
AjareliVajkaci

FE R6 PSYCHO ANIMATION PACK

Nov 22nd, 2024
587
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 1 0
  1. --made by Muscle_legends2021
  2.  
  3. local PsychoButton = Instance.new("TextButton")
  4. PsychoButton.Name = "PsychoAnim"
  5. PsychoButton.Text = "Psycho Anim"
  6. PsychoButton.Size = UDim2.new(0, 200, 0, 50)
  7. PsychoButton.Position = UDim2.new(0.5, -100, 0.5, -25)
  8. PsychoButton.BackgroundColor3 = Color3.fromRGB(139, 0, 0) -- Dark red when toggled off
  9. PsychoButton.TextColor3 = Color3.new(1, 1, 1)
  10. PsychoButton.Font = Enum.Font.Arcade -- Scarier font
  11. PsychoButton.TextSize = 24
  12. PsychoButton.BorderSizePixel = 2
  13. PsychoButton.BorderColor3 = Color3.new(0, 0, 0)
  14. PsychoButton.Draggable = true
  15.  
  16. local UICorner = Instance.new("UICorner")
  17. UICorner.CornerRadius = UDim.new(0, 10)
  18. UICorner.Parent = PsychoButton
  19.  
  20. local UIStroke = Instance.new("UIStroke")
  21. UIStroke.Thickness = 2
  22. UIStroke.Color = Color3.new(0, 0, 0)
  23. UIStroke.Parent = PsychoButton
  24.  
  25. local player = game.Players.LocalPlayer
  26. local screenGui = Instance.new("ScreenGui")
  27. screenGui.ResetOnSpawn = false -- Prevent GUI from disappearing on respawn
  28. screenGui.Parent = player:WaitForChild("PlayerGui")
  29. PsychoButton.Parent = screenGui
  30.  
  31. local animation1 = Instance.new("Animation")
  32. animation1.AnimationId = "rbxassetid://33796059"
  33.  
  34. local animation2 = Instance.new("Animation")
  35. animation2.AnimationId = "rbxassetid://184574340"
  36.  
  37. local humanoid = player.Character:WaitForChild("Humanoid")
  38. local idleTrack = humanoid:LoadAnimation(animation1)
  39. local walkTrack = humanoid:LoadAnimation(animation2)
  40.  
  41. local psychoActive = false
  42. local runningConnection
  43.  
  44. PsychoButton.MouseButton1Click:Connect(function()
  45. psychoActive = not psychoActive
  46.  
  47. if psychoActive then
  48. PsychoButton.BackgroundColor3 = Color3.fromRGB(0, 100, 0) -- Dark green when toggled on
  49.  
  50. -- Idle Animation Loop
  51. task.spawn(function()
  52. while psychoActive do
  53. if humanoid.MoveDirection.Magnitude == 0 then
  54. idleTrack:Play(0.1, 1, 1e8)
  55. task.wait(0.2)
  56. idleTrack:Stop()
  57. task.wait(1.2)
  58. else
  59. task.wait(0.1)
  60. end
  61. end
  62. end)
  63.  
  64. if runningConnection then runningConnection:Disconnect() end
  65. runningConnection = humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
  66. if psychoActive and humanoid.MoveDirection.Magnitude > 0 then
  67. if not walkTrack.IsPlaying then
  68. walkTrack:Play(0.1, 0.5, 40)
  69. walkTrack.Looped = true
  70. end
  71. else
  72. walkTrack:Stop()
  73. end
  74. end)
  75. else
  76. PsychoButton.BackgroundColor3 = Color3.fromRGB(139, 0, 0) -- Dark red when toggled off
  77. idleTrack:Stop()
  78. walkTrack:Stop()
  79. if runningConnection then runningConnection:Disconnect() end
  80. end
  81. end)
  82.  
  83. game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
  84. humanoid = character:WaitForChild("Humanoid")
  85. idleTrack = humanoid:LoadAnimation(animation1)
  86. walkTrack = humanoid:LoadAnimation(animation2)
  87. end)
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement