Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua f animation

local animationstomp = script.Animation
local user = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local human = char:WaitForChild("Humanoid")
user.InputBegan:Connect(function(input, proccesedevent)
   if input.KeyCode == Enum.KeyCode.F then
        local animationtrack = human:LoadAnimation(animationstomp)
        animationtrack:play()
    end
end)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lua #animation
ADD COMMENT
Topic
Name
9+4 =