Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name T K F P
- 28 February 2025
- 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
- Script Name: Roblox animation classic
- Warning: This script is not used for hacking! Especially to destroy the game.
- This script is only used for nostalgia for those of you who want to go back to Roblox 2007-2013
- 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
- and works well The script is below
- Don't forget to follow my account: 9666gui
- -- Pastikan ini dimasukkan dalam LocalScript di dalam ScreenGui
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)
- -- Animasi
- local animations = {
- Idle = Instance.new("Animation"),
- Walk = Instance.new("Animation"),
- Jump = Instance.new("Animation"),
- Climb = Instance.new("Animation"),
- Fall = Instance.new("Animation")
- }
- animations.Idle.AnimationId = "rbxassetid://167272039"
- animations.Walk.AnimationId = "rbxassetid://80979216"
- animations.Jump.AnimationId = "rbxassetid://619537661"
- animations.Climb.AnimationId = "rbxassetid://180436334"
- animations.Fall.AnimationId = "rbxassetid://657765087"
- local tracks = {
- Idle = animator:LoadAnimation(animations.Idle),
- Walk = animator:LoadAnimation(animations.Walk),
- Jump = animator:LoadAnimation(animations.Jump),
- Climb = animator:LoadAnimation(animations.Climb),
- Fall = animator:LoadAnimation(animations.Fall)
- }
- -- Suara
- local sounds = {
- Walk = Instance.new("Sound"),
- Jump = Instance.new("Sound")
- }
- sounds.Walk.SoundId = "rbxassetid://2428506935"
- sounds.Jump.SoundId = "rbxassetid://2428506580"
- sounds.Walk.Looped = true
- sounds.Walk.Parent = character
- sounds.Jump.Parent = character
- -- Variabel untuk kontrol animasi
- local isJumping = false
- local isFalling = false
- local isWalking = false
- -- Fungsi untuk menghentikan semua animasi kecuali yang sedang dimainkan
- local function stopAllAnimations(except)
- for name, track in pairs(tracks) do
- if name ~= except then
- track:Stop()
- end
- end
- sounds.Walk:Stop()
- sounds.Jump:Stop()
- end
- -- **Deteksi Gerakan**
- game:GetService("RunService").RenderStepped:Connect(function()
- if humanoid.MoveDirection.Magnitude > 0 then
- if not isWalking and not isJumping then
- isWalking = true
- stopAllAnimations("Walk")
- tracks.Walk:Play()
- if not sounds.Walk.IsPlaying then
- sounds.Walk:Play()
- end
- end
- else
- if isWalking then
- isWalking = false
- stopAllAnimations("Idle")
- tracks.Idle:Play()
- end
- end
- end)
- -- Event StateChanged (mengontrol semua animasi)
- humanoid.StateChanged:Connect(function(_, newState)
- if newState == Enum.HumanoidStateType.Climbing then
- stopAllAnimations("Climb")
- tracks.Climb:Play()
- elseif newState == Enum.HumanoidStateType.Jumping then
- if not isJumping then
- isJumping = true
- stopAllAnimations("Jump")
- tracks.Jump:Play()
- sounds.Jump:Play()
- end
- elseif newState == Enum.HumanoidStateType.Freefall then
- if isJumping then
- isJumping = false
- task.wait(0.2) -- Delay sebelum jatuh dimainkan
- end
- if not isFalling then
- isFalling = true
- stopAllAnimations("Fall")
- tracks.Fall:Play()
- end
- elseif newState == Enum.HumanoidStateType.Landed then
- isJumping = false
- isFalling = false
- if humanoid.MoveDirection.Magnitude > 0 then
- stopAllAnimations("Walk")
- tracks.Walk:Play()
- if not sounds.Walk.IsPlaying then
- sounds.Walk:Play()
- end
- else
- stopAllAnimations("Idle")
- tracks.Idle:Play()
- end
- end
- end)
- Tags:
- Advertisement
Advertisement
Add Comment
Please, Sign In to add comment