Advertisement
Eleguasito1

forsaken anims script but it has more

Mar 3rd, 2025 (edited)
432
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local Workspace = game:GetService("Workspace")
  4.  
  5. local player = Players.LocalPlayer
  6. local character = player.Character or player.CharacterAdded:Wait()
  7. local humanoid = character:WaitForChild("Humanoid")
  8. local animator = humanoid:FindFirstChildOfClass("Animator") or humanoid:WaitForChild("Animator")
  9. local head = character:WaitForChild("Head")
  10. local camera = Workspace.CurrentCamera
  11.  
  12. local originalCameraSubject = camera.CameraSubject
  13. local cameraFollowing = false
  14.  
  15. local defaultWalkSpeed = humanoid.WalkSpeed
  16. local defaultJumpPower = humanoid.JumpPower
  17.  
  18. local function startFollowingHead()
  19. if not cameraFollowing then
  20. cameraFollowing = true
  21. camera.CameraSubject = head
  22. end
  23. end
  24.  
  25. local function stopFollowingHead()
  26. cameraFollowing = false
  27. camera.CameraSubject = originalCameraSubject
  28. end
  29.  
  30. local function disableMovement()
  31. humanoid.WalkSpeed = 0
  32. humanoid.JumpPower = 0
  33. humanoid:SetStateEnabled(Enum.HumanoidStateType.Running, false)
  34. humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
  35. end
  36.  
  37. local function enableMovement()
  38. humanoid.WalkSpeed = defaultWalkSpeed
  39. humanoid.JumpPower = defaultJumpPower
  40. humanoid:SetStateEnabled(Enum.HumanoidStateType.Running, true)
  41. humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
  42. end
  43.  
  44. local animations = {
  45. Subterfuge = "rbxassetid://87482480949358",
  46. MissTheQuiet = "rbxassetid://100986631322204",
  47. Shucks = "rbxassetid://74238051754912",
  48. HakariDance = "rbxassetid://138019937280193",
  49. SillyBilly = "rbxassetid://107464355830477"
  50. Sukuna = "rbxassetid://112276030300130"
  51.  
  52. }
  53.  
  54. local sounds = {
  55. Subterfuge = "rbxassetid://132297506693854",
  56. MissTheQuiet = "rbxassetid://131936418953291",
  57. Shucks = "rbxassetid://123236721947419",
  58. HakariDance = "rbxassetid://87166578676888",
  59. SillyBilly = "rbxassetid://77601084987544"
  60. Sukuna = "rbxassetid://137906124003434"
  61.  
  62. }
  63.  
  64. local animationObjects = {}
  65. local soundObjects = {}
  66.  
  67. for name, id in pairs(animations) do
  68. local anim = Instance.new("Animation")
  69. anim.AnimationId = id
  70. animationObjects[name] = anim
  71. end
  72.  
  73. for name, id in pairs(sounds) do
  74. local sound = Instance.new("Sound", head) -- 📌 Parent to "Head" so others can hear
  75. sound.SoundId = id
  76. sound.Volume = 2
  77. sound.Looped = false
  78. sound.RollOffMode = Enum.RollOffMode.Linear
  79. sound.MaxDistance = 50 -- 🎶 Sets range where others can hear
  80. soundObjects[name] = sound
  81. end
  82.  
  83. local activeAnimationTrack
  84. local activeSound
  85.  
  86. local function playAnimation(animationName)
  87. if animator then
  88. if activeAnimationTrack then
  89. activeAnimationTrack:Stop()
  90. end
  91. if activeSound then
  92. activeSound:Stop()
  93. end
  94.  
  95. disableMovement()
  96. startFollowingHead()
  97.  
  98. activeAnimationTrack = animator:LoadAnimation(animationObjects[animationName])
  99. activeAnimationTrack:Play()
  100.  
  101. activeSound = soundObjects[animationName]
  102. activeSound:Play()
  103.  
  104. activeAnimationTrack.Stopped:Connect(function()
  105. enableMovement()
  106. stopFollowingHead()
  107. end)
  108. end
  109. end
  110.  
  111. local function stopAnimation()
  112. if activeAnimationTrack then
  113. activeAnimationTrack:Stop()
  114. end
  115. if activeSound then
  116. activeSound:Stop()
  117. end
  118. enableMovement()
  119. stopFollowingHead()
  120. end
  121.  
  122. local function createButton(parent, text, position, color, onClick)
  123. local button = Instance.new("TextButton")
  124. button.Size = UDim2.new(0.8, 0, 0.12, 0)
  125. button.Position = position
  126. button.Text = text
  127. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  128. button.BackgroundColor3 = color
  129. button.Font = Enum.Font.GothamBold
  130. button.TextSize = 16
  131. button.Parent = parent
  132.  
  133. local buttonCorner = Instance.new("UICorner")
  134. buttonCorner.CornerRadius = UDim.new(0, 5)
  135. buttonCorner.Parent = button
  136.  
  137. button.MouseButton1Click:Connect(onClick)
  138.  
  139. return button
  140. end
  141.  
  142. -- 📌 Smaller GUI
  143. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  144. local mainFrame = Instance.new("Frame", screenGui)
  145. mainFrame.Size = UDim2.new(0, 300, 0, 380)
  146. mainFrame.Position = UDim2.new(0.5, -100, 0.5, -140)
  147. mainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  148. mainFrame.BackgroundTransparency = 0.2
  149. mainFrame.BorderSizePixel = 0
  150. mainFrame.Active = true
  151. mainFrame.Draggable = true
  152.  
  153. local uiCorner = Instance.new("UICorner")
  154. uiCorner.CornerRadius = UDim.new(0, 10)
  155. uiCorner.Parent = mainFrame
  156.  
  157. -- Close Button
  158. local closeButton = Instance.new("TextButton", mainFrame)
  159. closeButton.Size = UDim2.new(0, 25, 0, 25)
  160. closeButton.Position = UDim2.new(1, -30, 0, 5)
  161. closeButton.Text = "X"
  162. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  163. closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  164. closeButton.Font = Enum.Font.GothamBold
  165. closeButton.TextSize = 16
  166.  
  167. local closeCorner = Instance.new("UICorner")
  168. closeCorner.CornerRadius = UDim.new(0, 5)
  169. closeCorner.Parent = closeButton
  170.  
  171. closeButton.MouseButton1Click:Connect(function()
  172. mainFrame.Visible = false
  173. end)
  174.  
  175. -- Create Buttons
  176. createButton(mainFrame, "Subterfuge", UDim2.new(0.1, 0, 0.1, 0), Color3.fromRGB(30, 60, 90), function()
  177. playAnimation("Subterfuge")
  178. end)
  179.  
  180. createButton(mainFrame, "Miss The Quiet", UDim2.new(0.1, 0, 0.24, 0), Color3.fromRGB(0, 0, 255), function()
  181. playAnimation("MissTheQuiet")
  182. end)
  183.  
  184. createButton(mainFrame, "Shucks", UDim2.new(0.1, 0, 0.38, 0), Color3.fromRGB(255, 165, 0), function()
  185. playAnimation("Shucks")
  186. end)
  187.  
  188. createButton(mainFrame, "Hakari Dance", UDim2.new(0.1, 0, 0.52, 0), Color3.fromRGB(57, 255, 20), function()
  189. playAnimation("HakariDance")
  190. end)
  191.  
  192. createButton(mainFrame, "Silly Billy", UDim2.new(0.1, 0, 0.66, 0), Color3.fromRGB(255, 105, 180), function()
  193. playAnimation("SillyBilly")
  194. end)
  195.  
  196.  
  197. createButton(mainFrame, "Sukuna", UDim2.new(0.1, 0, 0.66, 0), Color3.fromRGB(255, 0, 0), function()
  198. playAnimation("Sukuna")
  199. end)
  200.  
  201.  
  202. createButton(mainFrame, "Stop Emote", UDim2.new(0.1, 0, 0.80, 0), Color3.fromRGB(255, 50, 50), stopAnimation)
  203.  
  204.  
  205. -- 🎉 Restored "Made by: Ice" Label
  206. local creditLabel = Instance.new("TextLabel", mainFrame)
  207. creditLabel.Size = UDim2.new(0.8, 0, 0.08, 0)
  208. creditLabel.Position = UDim2.new(0.1, 0, 0.92, 0)
  209. creditLabel.Text = "Made by: Ice"
  210. creditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  211. creditLabel.BackgroundTransparency = 1
  212. creditLabel.Font = Enum.Font.GothamBold
  213. creditLabel.TextSize = 14
  214. creditLabel.TextXAlignment = Enum.TextXAlignment.Center
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement