local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(key)
if key:byte() == 1 then
if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 30 then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
elseif game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 16 then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
end
elseif key:byte() == 2 then
if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 30 then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
elseif game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 16 then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
end
end
end)
that is my code. I'm essentially trying to make a character run when right ctrl or left ctrl are pressed. Thanks In Advance.

1 comment
https://scriptinghelpers.org/blog/all-about-deprecation