Hi everyone! I want to make a keybind where when a player presses C, an animation plays where a player’s right arm is tucking the tool, in this case a football, across their chest, and somehow keep the animation at that point, which I don’t know how to do as of right now. And when C is pressed again, I want the player to release the ball and go back to the normal tool-holding position. How may I do so? Thank you all!
Here is my script, although it needs fixing:
local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")
local character = player.Character or script.Parent
local humanoid = character.Humanoid
local debounce = false
uis.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if not player.Character:FindFirstChild("Football") then return end
if input.KeyCode == Enum.KeyCode.V then
if not debounce then
print("V was pressed!")
debounce = true
-- Animation goes here but it stays at the certain frame it is in at the end somehow
wait(0.5)
debounce = false
end
end
end)
In the function, it will fire a remote event which activates or deactivates whether the ball is tucked.
This is what I want to accomplish in the end:
Notice how he is able to tuck the ball by pressing a key and able to release it by pressing it again. This is what my goal is.