local UIS = game:GetService(“UserInputService”)
local Player = game.Players.LocalPlayer
local sprinting = false
local char = Player.Character
UIS.InputBegan:Connect(function(key, gameProcessed)
if not gameProcessed then
if key.KeyCode == Enum.KeyCode.Ctrl then
if sprinting == false then
local humanoid = char.Humanoid
humanoid.WalkSpeed = 25
if humanoid.Walkspeed == 25 then
sprinting = true
print(Player.Name..”is running”)
end
end
end
end)
the Output keeps saying that humanoid isn’t a part of char. pls help
