Animation Script
Customize your variables, then fill in the blanks!
Your Custom Settings
Key to trigger punch
Key to trigger kick
From Roblox Animation Editor
From Roblox Animation Editor
LocalScript (StarterCharacterScripts)
This script plays punch and kick animations when you press keys. Create your animations in Roblox and paste the IDs above!
local UIS = game:("UserInputService")
local character = script.
local humanoid = character:("Humanoid")
local punchAnim = Instance.new("")
punchAnim. = "rbxassetid://YOUR_PUNCH_ID"
local kickAnim = Instance.new("Animation")
kickAnim.AnimationId = "rbxassetid://YOUR_KICK_ID"
UIS.:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.P then
humanoid:(punchAnim):()
elseif input.KeyCode == Enum.KeyCode.K then
humanoid:LoadAnimation(kickAnim):Play()
end
end)
