When i press left shift i get error Play is not a valid member of Animation
local player = game.Players.LocalPlayer
player.CharacterAdded:Connect(function(char)
wait(1)
local mous = player:GetMouse()
local humoid = player.Character:WaitForChild("Humanoid")
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=2653244376"
local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(function(Input)
local MouseInput = Input.UserInputType
local KeyCode = Input.KeyCode
if KeyCode == Enum.KeyCode.LeftShift then
humoid.WalkSpeed = 30
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=2654943642"
player.Character.Animate.walk.WalkAnim:Play()
end
end)
UIS.InputEnded:connect(function(Input)
local MouseInput = Input.UserInputType
local KeyCode = Input.KeyCode
if KeyCode == Enum.KeyCode.LeftShift then
humoid.WalkSpeed = 16
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=2653244376"
player.Character.Animate.walk.WalkAnim:Play()
end
end)
end)

2 comments
I have script in PlayerGui LocalScriot
Bypassed it