The title explains it hopefully this is possible.
Script:
local UIS = game:GetService('UserInputService') local Player = game.Players.LocalPlayer local Character = Player.Character UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.W then local Anim = Instance.new('Animation') Anim.AnimationId = 'rbxassetid://1667958741' PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Play() end end) UIS.InputEnded:connect(function(input) if input.KeyCode == Enum.KeyCode.W then Character.Humanoid.WalkSpeed = 16 PlayAnim:Stop() end end)
I'll answer. Yes, it is possible, just follow up lines 6 and 16 and make them something like:
game:WaitForChild(UIS) if game:WaitForChild(UIS) then if UIS:IsKeyDown(Enum.KeyCode.W) and UIS:IsKeyDown(Enum.KeyCode.X) then
Line 3, however, requires the player to press W and X at the same time.