uis.InputBegan:Connect(function(key, gameProcessed)
if key.KeyCode == **Enum.KeyCode.C** then
if isCrawling then
isCrawling = false
if loadedCrawlAnim then loadedCrawlAnim:Stop() end
loadedIdleAnim:Stop()
game.ReplicatedStorage.OnCrouchBegun:FireServer(humanoid, 16, 50)
elseif not isCrawling then
isCrawling = true
loadedIdleAnim = humanoid:LoadAnimation(crawlIdle)
loadedIdleAnim:Play()
game.ReplicatedStorage.OnCrouchBegun:FireServer(humanoid, 0.5, 20)
end
end
end)
I need to make the key combination activate the animation, "the script is already complete and functional", and if it is possible since there is a plane that is saved with Shift + G, can someone help me? thanks

3 comments
So, are you trying to active the if statement when a specific combination of keys are pressed?
*activate
Yeah