Walkspeed is not a valid member of Humanoid

Hello everyone! I am currently scripting and have encountered an issue.

Here’s the error: " Walkspeed is not a valid member of Humanoid “Workspace.DxubleG.Humanoid”

Here’s the code.

	if player.Character then
		
		player.Character.Humanoid.Walkspeed = 14
		
		local bat = game.ServerStorage.Tools.PiggyBat:Clone()
		bat.Parent = player.Character
		
		if player.Character:FindFirstChild("HumanoidRootPart") then
			player.Character.HumanoidRootPart.CFrame = game.Workspace.WaitingRoom.PiggyWaitingSpawn.CFrame + Vector3.new(0,5,0)
		end
		
	end
end
3 Likes

Its WalkSpeed, not Walkspeed.

4 Likes