i know a simple script but i guess i just forgot the basics or something `local UIS = game:GetService("UserInputService") local player = game.Players.LocalPlayer local Character = player.Character
UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.LeftControl then Character.Humanoid.WalkSpeed = 25 local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://04981880688" --You Animation local PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Play() end end)
UIS.InputEnded:connect(function(input) if input.KeyCode == Enum.KeyCode.LeftControl then Character.Humanoid.WalkSpeed = 16 local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://04981880688" local PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Stop() end end)
here is the script i want to be able to tap left control and sprint however it makes me hold left control which is what i dont want

2 comments
Next time, use codeblocks to present code.
Could you please edit your question and add codeblocks, thank you.