I have not done a lot of scripting with animations so I just wanted to ask how and why this script works (Pls break down the script) ~~~~~~~~~~~~~~~~~ local UIS = game:GetService('UserInputService') local Player = game.Players.LocalPlayer local Character = Player.Character
UIS.InputBegan:connect(function(input)--When a player has pressed LeftShift it will play the animation and it will set the normal walking speed (16) to 35. if input.KeyCode == Enum.KeyCode.LeftShift then Character.Humanoid.WalkSpeed = 25 local Anim = Instance.new('Animation') Anim.AnimationId = 'rbxassetid://10867310905' PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Play() end end)
UIS.InputEnded:connect(function(input) if input.KeyCode == Enum.KeyCode.LeftShift then Character.Humanoid.WalkSpeed = 16 PlayAnim:Stop() end end)

2 comments
this is a scripting helper page,not "how scripts work" or a scripting tutorial page man
We are helping them understand the script Iamgogo... scripting helpers is about helping with anything regarding scripts