TKFP

Untitled

Mar 3rd, 2025 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. Name T K F P
  2. 28 February 2025
  3. The script was successfully created by T K F P and was found in the year Friday 28 February 2025 and start of the year 1 September 2024
  4.  
  5. Script Name: Roblox animation classic
  6. Warning: This script is not used for hacking! Especially to destroy the game.
  7. This script is only used for nostalgia for those of you who want to go back to Roblox 2007-2013
  8. Maybe Roblox will end because of the many hackers like me who made this script! And with this script Roblox should no longer have hacking in Roblox. The script actually works This script is specifically for R6 avatars
  9. and works well The script is below
  10. Don't forget to follow my account: 9666gui
  11.  
  12.  
  13.  
  14. -- Pastikan ini dimasukkan dalam LocalScript di dalam ScreenGui
  15. local Players = game:GetService("Players")
  16. local player = Players.LocalPlayer
  17. local character = player.Character or player.CharacterAdded:Wait()
  18. local humanoid = character:WaitForChild("Humanoid")
  19. local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
  20.  
  21. -- Animasi
  22. local animations = {
  23. Idle = Instance.new("Animation"),
  24. Walk = Instance.new("Animation"),
  25. Jump = Instance.new("Animation"),
  26. Climb = Instance.new("Animation"),
  27. Fall = Instance.new("Animation")
  28. }
  29. animations.Idle.AnimationId = "rbxassetid://167272039"
  30. animations.Walk.AnimationId = "rbxassetid://80979216"
  31. animations.Jump.AnimationId = "rbxassetid://619537661"
  32. animations.Climb.AnimationId = "rbxassetid://180436334"
  33. animations.Fall.AnimationId = "rbxassetid://657765087"
  34.  
  35. local tracks = {
  36. Idle = animator:LoadAnimation(animations.Idle),
  37. Walk = animator:LoadAnimation(animations.Walk),
  38. Jump = animator:LoadAnimation(animations.Jump),
  39. Climb = animator:LoadAnimation(animations.Climb),
  40. Fall = animator:LoadAnimation(animations.Fall)
  41. }
  42.  
  43. -- Suara
  44. local sounds = {
  45. Walk = Instance.new("Sound"),
  46. Jump = Instance.new("Sound")
  47. }
  48. sounds.Walk.SoundId = "rbxassetid://2428506935"
  49. sounds.Jump.SoundId = "rbxassetid://2428506580"
  50. sounds.Walk.Looped = true
  51. sounds.Walk.Parent = character
  52. sounds.Jump.Parent = character
  53.  
  54. -- Variabel untuk kontrol animasi
  55. local isJumping = false
  56. local isFalling = false
  57. local isWalking = false
  58.  
  59. -- Fungsi untuk menghentikan semua animasi kecuali yang sedang dimainkan
  60. local function stopAllAnimations(except)
  61. for name, track in pairs(tracks) do
  62. if name ~= except then
  63. track:Stop()
  64. end
  65. end
  66. sounds.Walk:Stop()
  67. sounds.Jump:Stop()
  68. end
  69.  
  70. -- **Deteksi Gerakan**
  71. game:GetService("RunService").RenderStepped:Connect(function()
  72. if humanoid.MoveDirection.Magnitude > 0 then
  73. if not isWalking and not isJumping then
  74. isWalking = true
  75. stopAllAnimations("Walk")
  76. tracks.Walk:Play()
  77. if not sounds.Walk.IsPlaying then
  78. sounds.Walk:Play()
  79. end
  80. end
  81. else
  82. if isWalking then
  83. isWalking = false
  84. stopAllAnimations("Idle")
  85. tracks.Idle:Play()
  86. end
  87. end
  88. end)
  89.  
  90. -- Event StateChanged (mengontrol semua animasi)
  91. humanoid.StateChanged:Connect(function(_, newState)
  92. if newState == Enum.HumanoidStateType.Climbing then
  93. stopAllAnimations("Climb")
  94. tracks.Climb:Play()
  95.  
  96. elseif newState == Enum.HumanoidStateType.Jumping then
  97. if not isJumping then
  98. isJumping = true
  99. stopAllAnimations("Jump")
  100. tracks.Jump:Play()
  101. sounds.Jump:Play()
  102. end
  103.  
  104. elseif newState == Enum.HumanoidStateType.Freefall then
  105. if isJumping then
  106. isJumping = false
  107. task.wait(0.2) -- Delay sebelum jatuh dimainkan
  108. end
  109.  
  110. if not isFalling then
  111. isFalling = true
  112. stopAllAnimations("Fall")
  113. tracks.Fall:Play()
  114. end
  115.  
  116. elseif newState == Enum.HumanoidStateType.Landed then
  117. isJumping = false
  118. isFalling = false
  119.  
  120. if humanoid.MoveDirection.Magnitude > 0 then
  121. stopAllAnimations("Walk")
  122. tracks.Walk:Play()
  123. if not sounds.Walk.IsPlaying then
  124. sounds.Walk:Play()
  125. end
  126. else
  127. stopAllAnimations("Idle")
  128. tracks.Idle:Play()
  129. end
  130. end
  131. end)
  132. Tags:
  133. Advertisement
  134.  
Advertisement
Add Comment
Please, Sign In to add comment